Wednesday 2 December 2015

Documentation for HTTP requests of the form /something/:name mean?[express.js]

I think I have an idea what this is doing:app.get('/user/:id', function(req, res) { userid = req.params.id; }); It is looking for a get request where the first part of the path is 'user' and the second part is available as the 'id' parameter.My question is, where is this functionality defined? In express or as part of the HTML protocol? And can you send me the documentation of where this feature.Please and thank you.

Submitted December 03, 2015 at 03:45AM by natdanimore

No comments:

Post a Comment