Open newtang opened 3 years ago
Imagine we have two routes:
router.get('/api/user/foo', (req, res, next) => { next(); }) router.get('/api/user/:id', (req, res, next) => { //do stuff })
If a call is made to GET /api/user/foo, the first route will be called, but not the second route. We should allow next() called from a route, to filter down to less specific routes, like static -> param, static -> regex, or param -> regex.
GET /api/user/foo
next()
Should this be allowed by configuration?
Imagine we have two routes:
If a call is made to
GET /api/user/foo
, the first route will be called, but not the second route. We should allownext()
called from a route, to filter down to less specific routes, like static -> param, static -> regex, or param -> regex.