New Admin Route

Scaffold a new admin API route (src/app/api/admin/**/route.ts) pre-wired with ActiveCAMT's security pattern — server-side auth() role gate, Zod validation, and a db.transaction that writes an AuditService audit log. Use when adding any admin/staff API endpoint, so the role gate and audit log can't be forgotten. For routes that read medical data, audit logging is made mandatory.

daydeda ffe5e82 4.2 KB Updated

File contents

daydeda/songsue/tree/main/.claude/skills/new-admin-route commit ffe5e82b04

Frequently asked questions

npx skillmds@latest add daydeda/new-admin-route