LibraryActive

AdonisJS Routing

AdonisJS routing system for mapping HTTP requests to handlers with params, groups, middleware, and resource routes.

Open source page ↗

Product features

Product features

Add your first action

Connect the controller to a route

Constructor injection

Controllers

Creating your first controller

Dependency injection

Generate the controller

Method injection

Resource-driven controllers

Test it out

The barrel file

Understanding controller lifecycle