Routing maps an HTTP method and a path to a handler function. Path parameters (/users/:id) are read from req.params, the query string from req.query, and the body from req.body. A Router groups a resource's routes in a module.
Example
app.get('/users/:id', (req, res) => res.json({ id: req.params.id }));