Implement Routing

Learn about the implementation of routing in our project.

Our application is still missing the routing. Therefore, let’s learn about it and introduce routes in our project.

Routing

Routing refers to how an application handles a client request to a particular endpoint. An endpoint consists of a path, such as /hello in https://www.helloworld.com/hello, and an HTTP method, which could be GET, PUT, POST, PATCH, or DELETE.

Task 6: Express route handler

Inside src/index.js, create a route handler after instantiating the Express application:

Get hands-on with 1200+ tech skills courses.