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 cb919a4 5.3 KB Updated

File contents

filipebraida/adonisjs-starter-kit/tree/main/packages/skills/routes commit cb919a46d9

Frequently asked questions

npx skillmds@latest add filipebraida/routes