Open newtang opened 4 years ago
Currently, the callbacks in router.param are called before callbacks from router.use. This does not match what the express router does:
router.param
router.use
The order things should be called:
Ideally, the middleware would be added in the appropriate spot for routes that have already been added, and routes that are added after param is called.
Currently, the callbacks in
router.param
are called before callbacks fromrouter.use
. This does not match what the express router does:The order things should be called:
Ideally, the middleware would be added in the appropriate spot for routes that have already been added, and routes that are added after param is called.