When using restana service.use method with multiple handlers but no route only the first handler is called.
If the first argument is a route, then the multiple handlers are considered.
I would expect a similar behavior as with express here.
So if the first argument is a handler, then this apples to all routes and methods.
My current workaround is to chain each handler like service.use(first).use(second).use(third).
IMHO also service.use(first, second, third) should be supported.
Below you find a sample script which demonstrates the current behavior.
When using restana
service.use
method with multiple handlers but no route only the first handler is called.If the first argument is a route, then the multiple handlers are considered.
I would expect a similar behavior as with express here. So if the first argument is a handler, then this apples to all routes and methods.
My current workaround is to chain each handler like
service.use(first).use(second).use(third)
. IMHO alsoservice.use(first, second, third)
should be supported.Below you find a sample script which demonstrates the current behavior.