SyntaxFix
Write A Post
Hire A Developer
Questions
req.query is the query string sent to the server, example /page?test=1, req.param is the parameters passed to the handler.
req.query
/page?
req.param
app.get('/user/:id', handler);, going to /user/blah, req.param.id would return blah;
app.get('/user/:id', handler);
/user/blah
req.param.id
blah