What You’ll Learn in This Hour:
• How routing works in Express
• Adding routes in Express
• Using parameters in routes
• Passing data to the view layer
• Displaying data in the view layer
Routing describes whether and how an application should respond to certain Hypertext Transfer Protocol (HTTP) requests. Your browser makes these requests when you are interacting with an application or website.
Routing is just a term for defining the end points for HTTP requests in an application. So, if you want your application to be able to do something, you need to set up a route for it!
Express uses HTTP verbs to define routes. HTTP verbs describe the type of request that ...