Guest User

Untitled

a guest
Dec 18th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. router.get('/chain/example', [
  2. (req, res, next) => {
  3. req.chain = 'one ->'
  4. next()
  5. },
  6. (req, res, next) => {
  7. req.chain = `${ req.chain} two ->`
  8. next()
  9. },
  10. (req, res, next) => {
  11. res.end(`${req.chain} three`)
  12. // next -> udefined thus cannot be called
  13. }
  14. ]
  15. )
Add Comment
Please, Sign In to add comment