Answers for "express filenames for url params"

4

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
Posted by: Guest on October-14-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language