O'Reilly logo

Developing a hapi Edge: A Rich Node.js Framework for Apps and Services by Foreword by Eran Hammer, Lloyd Benson, Daniel Bretoi, Van Nguyen, Wyatt Preul

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

Chapter 3. Routes

In most places, the term route is associated with a certain path you can take to get to your destination. When driving from point A to B, for instance, you may have the option of several different routes. A route is a very specific path between the two points.

In hapi and other frameworks, a route is a specific path that a request takes. On a website, the number of characters you can write after the address hapi-plugins.com are only limited to the number of characters your browser will support. But in order to send a request and actually get a response for what you’re looking for, you need to know the route of where to send the request. The query then travels through a known path within the framework, and a response is returned ...

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