See the written version of this tutorial for links to prerequisites and related tutorials: https://heynode.com/tutorial/add-resp...
Routing directs an incoming HTTP request to the appropriate action in our Node.js API. In this tutorial we will create a routes module in which we'll define the endpoints for the Node.js Express server. We will also create handlers for our routes which will use the functions we created earlier to make requests to the service and return a transformed response from our API.
By the end of this tutorial, you should be able to:
Understand how to create modular Express routes in Node.js
Explain what an Node.js Express router instance is
Heynode.com: The best online Node.js courses and tutorials to help you solve hard problems fast.