Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

middleware in express

app.use('/user/:id', (req, res, next) => {
  console.log('Request Type:', req.method)
  next()
})
Source by expressjs.com #
 
PREVIOUS NEXT
Tagged: #middleware #express
ADD COMMENT
Topic
Name
3+1 =