express icon indicating copy to clipboard operation
express copied to clipboard

Support multiple functions in app.param

Open tanqhnguyen opened this issue 9 years ago • 4 comments

#2603

A simple change but it might be useful in some cases where we can write shorter code to reuse middleware in app.param

tanqhnguyen avatar May 14 '15 23:05 tanqhnguyen

@dougwilson Is this one still valid?

tanqhnguyen avatar Jan 18 '16 19:01 tanqhnguyen

From what I can tell, app.param is being removed from Express in v5, so unless there are still plans to land this in 4.x, this PR can likely be closed.

jonchurch avatar May 13 '20 23:05 jonchurch

So app.param is not being removed in 5.0. In fact, it is being updated to include Promise support.

dougwilson avatar May 13 '20 23:05 dougwilson

Ahh thank you @dougwilson, I see now that this commit was reverted by this later commit.

jonchurch avatar May 14 '20 01:05 jonchurch