Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express route parameters

Route path: /flights/:from-:to
Request URL: http://localhost:3000/flights/LAX-SFO
req.params: { "from": "LAX", "to": "SFO" }
Source by expressjs.com #
 
PREVIOUS NEXT
Tagged: #express #route #parameters
ADD COMMENT
Topic
Name
6+5 =