Traditionally, express comes with a router which can be used to define routes in your API.
A typical routes file looks like:
app.get('/books/:id', booksController.getBook)app.post('/books'…