Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express route parameters

Route path: /users/:userId/books/:bookId
Request URL: http://localhost:3000/users/34/books/8989
req.params: { "userId": "34", "bookId": "8989" }
Source by expressjs.com #
 
PREVIOUS NEXT
Tagged: #express #route #parameters
ADD COMMENT
Topic
Name
8+6 =