Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

expressjs req.body.parameters

app.get('/user/:id', (req, res) => {
  console.log(req.params.id) // "1234562134654"
})
or
app.get('/user/:user_id', (req, res) => {
  console.log(req.params.user_id) // "1234562134654"
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #expressjs
ADD COMMENT
Topic
Name
9+4 =