remove router array middleware support #1315

Closed
tj opened this Issue Sep 3, 2012 · 10 comments

Projects

None yet

7 participants

@tj
expressjs member
tj commented Sep 3, 2012

currently we support stuff like:

var common = [foo, bar, baz];
app.get('/something', common, fn);
app.get('/else', common, fn);

though personally I don't use this much, let me know if you do

@jonathanong
expressjs member

i do, actually, since i create very specific middleware and reuse them frequently, and like to package them into an array.

@jarradseers
@tj
expressjs member
tj commented Sep 3, 2012

cool thanks guys, wanted to make sure people were using this otherwise it would be worth removing

@robby
@ovaillancourt

Chiming in (slightly late) - we do use that feature a lot too here, mostly to split processing steps in "building blocks" for more complicated request.

I was actually wondering if it would be possible to have the same feature for .use, seems relatively straightforward to implement.

@antitoxic

Yep, i also use it as "filters". Really useful stuff and a eye-opener for me that things can be done in this way.

@tj
expressjs member
tj commented Oct 15, 2012

haha k k ill keep it

@RexMorgan

Sounds like this feature should stay, and this issue should not? 😄

@ovaillancourt

agreed :P.

@tj
expressjs member
tj commented Feb 11, 2013

:D

@tj tj closed this Feb 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment