Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express js redirect to url

app.all('/secret', function (req, res, next) {
  console.log('Accessing the secret section ...')
  next() // pass control to the next handler
})
Source by expressjs.com #
 
PREVIOUS NEXT
Tagged: #express #js #redirect #url
ADD COMMENT
Topic
Name
7+2 =