Set up Routes for Your API in Node.js

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

This tutorial is part 4 of 7 tutorials that walk through using Express.js to create an API proxy server.

Log in or Sign up to view the complete tutorial.

Sign in with your Osio Labs account
to gain instant access to our entire library.

Data Brokering with Node.js