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
i do, actually, since i create very specific middleware and reuse them frequently, and like to package them into an array.
cool thanks guys, wanted to make sure people were using this otherwise it would be worth removing
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.
Yep, i also use it as "filters". Really useful stuff and a eye-opener for me that things can be done in this way.
haha k k ill keep it
Sounds like this feature should stay, and this issue should not? 😄