Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express routing

app.get('/example/b', function (req, res, next) {
  console.log('the response will be sent by the next function ...')
  next()
}, function (req, res) {
  res.send('Hello from B!')
})
Source by expressjs.com #
 
PREVIOUS NEXT
Tagged: #express #routing
ADD COMMENT
Topic
Name
4+6 =