Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express js redirect to url

// GET method route
app.get('/', function (req, res) {
  res.send('GET request to the homepage')
})

// POST method route
app.post('/', function (req, res) {
  res.send('POST request to the homepage')
})
Source by expressjs.com #
 
PREVIOUS NEXT
Tagged: #express #js #redirect #url
ADD COMMENT
Topic
Name
9+8 =