app.get('/path/:name', function(req, res) { res.send("tagId is set to " + req.params.name); });
// http://localhost:8080/api/1 app.get('/api/:version', function(req, res) { res.send(req.params.version); });
Route path: /users/:userId/books/:bookId Request URL: http://localhost:3000/users/34/books/8989 req.params: { "userId": "34", "bookId": "8989" }