Routing
Explore how to create URL routes in AdonisJs, including directly rendering views, adding closures, and binding routes to controllers. Understand how AdonisJs matches URL patterns and how middleware can be attached to routes to control access and enhance functionality.
We'll cover the following...
We'll cover the following...
Introduction
The start/routes.js file defines the URL patterns that we allow our users to access as entry points to our web application. Every time a user requests a certain URL, Adonis finds the URL pattern inside start/routes.js. If the pattern matches, Adonis processes the logic defined inside that route. We can bind routes with controllers as logic handlers. We can also ...