What values will be extracted from this URL: /api/products/4…
What values will be extracted from this URL: /api/products/42?category=electronics&sort=price app.get(‘/api/products/:id’, (req, res) => { const productId = req.params.id; const category = req.query.category; const sort = req.query.sort; res.json({ productId, category, sort });});
Read Details