Answer
A Router groups related routes and middleware into a module that can be mounted under a path.
Explanation
It helps keep growing applications organized around features.
Example
const users = express.Router(); app.use('/users', users);A Router groups related routes and middleware into a module that can be mounted under a path.
It helps keep growing applications organized around features.
const users = express.Router(); app.use('/users', users);