Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express param in url

app.get('/p/:tagId', function(req, res) {
  res.send("tagId is set to " + req.params.tagId);
});

// GET /p/5
// tagId is set to 5
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #express #param #url
ADD COMMENT
Topic
Name
5+7 =