SyntaxFix
Write A Post
Hire A Developer
Questions
Given this route
app.get('/hi/:param1', function(req,res){} );
and given this URL http://www.google.com/hi/there?qs1=you&qs2=tube
http://www.google.com/hi/there?qs1=you&qs2=tube
You will have:
req.query
{ qs1: 'you', qs2: 'tube' }
req.params
{ param1: 'there' }
Express req.params >>