This refers to how an application responds to a request from the client side to a particular endpoint with a specific http request method (POST,PUT,DELETE, etc.), you get it? if not, Don’t worry…

In simple terms, routing refers to how the application behaves on a specific url or path with a specific HTTP method

For example, let’s say you have a 3-page website with URL (, which includes the Home page, contact us page and an about us page,

This is image title

so this is where routing comes into play, with a get request to the homepage i.e. (, you intend to respond with the home or landing page where u have these fancy carousel and all making it look great, isn’t it?

#expressjs #nodejs #middleware #software-development #programming

Routes and Middleware in Node.js/Express, Simplified
3.55 GEEK