1GET /something?color1=red&color2=blue
2
3app.get('/something', (req, res) => {
4 req.query.color1 === 'red' // true
5 req.query.color2 === 'blue' // true
6})
7
8req.params refers to items with a ':' in the URL and req.query refers to items associated with the '?
1app.get('/path/:name', function(req, res) {
2 res.send("tagId is set to " + req.params.name);
3});