Routes

Route definitions in an AdonisJS module. Prefer `router.resource(...)` for CRUD verbs; put verb-only actions (activate, publish, finalize) as separate `router.post/get/delete(...)`. Always pin numeric params with `router.matchers.number()` — otherwise a non-numeric URL falls through to the controller and blows up on the ORM. Trigger on: "add route", "register route", "resource route", "matcher", ":id 500", "route naming".

filipebraida Updated 98 repo stars
Demo

File contents

filipebraida/adonisjs-starter-kit commit cb919a46d9

Frequently asked questions

npx get-skill add filipebraida/routes