Closed wdanxna closed 5 years ago
Document says:
To run middleware before a specific route, also pass the optional path: const router = require('koa-joi-router'); const users = router(); users.get('/:id', handler); users.use('/:id', runThisBeforeHandler);```
To run middleware before a specific route, also pass the optional path:
const router = require('koa-joi-router'); const users = router(); users.get('/:id', handler); users.use('/:id', runThisBeforeHandler);```
but runThisBeforeHandler is actually run after handler
runThisBeforeHandler
handler
fixed the docs
Document says:
but
runThisBeforeHandler
is actually run afterhandler