Closed evert closed 4 years ago
If this is till relevant i'd like to take a shot at it. 👍
I think it's still relevant, but I'm wondering now if this is a better syntax:
use(...mw: Middleware)
This way you could call
app.use(mw1, mw2);
Instead of:
app.use([mw1, mw2])
Writing it as
app.use(mw1, mw2);
Seems more intuitive yes.
Shouldn't this be closed? It was implemented in #98.
Yep you're right!
Change signature of
use(mw: Middleware)
touse(mw: Middleware|Middleware[])