What problem does it solve?
AdonisJS routing, middleware, and permission patterns are essential for building scalable, secure web APIs. This skill provides a cohesive guide to organize routes, apply middleware stacks, and enforce authorization using Bouncer policies and route-level guards across large apps.
Core Features & Use Cases
- Route definition patterns: get, post, put, delete, and resource routes with grouped patterns for consistency.
- Route groups and versioning: nest routes under prefixes and API version groups with shared middleware.
- Middleware patterns: server, router, and named middleware to compose stable request handling and guards.
- Permission patterns: Bouncer abilities, policies, and route-level can middleware to enforce per-user access.
- Project organization: directory structure guidance and testing strategies for route security.
- Reference implementations: shows concrete TypeScript examples and testing patterns.
Quick Start
Define routes using router methods, apply middleware, and enforce permissions with Bouncer in your project.