O'Reilly logo

Sams Teach Yourself Node.js in 24 Hours by George Ornbo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hour 7. More on Express

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 in Web Applications

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!

How Routing Works in Express

Express uses HTTP verbs to define routes. HTTP verbs describe the type of request that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required