In the previous chapter, we set up our environment and got our first look at the structure of an AdonisJs application. Now it’s time to add HTTP endpoints to the application. This is done by adding routes. We’ll learn about all the ways to customize routes, use the data they hold, and respond to any request.
What Are Routes?
Routes are like glue between the HTTP requests your browser makes and the server code meant for each request. This isn’t the first time we’re seeing them, either. In the previous chapter, we created a /registration route (though we didn’t do any ...