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 Updated

File contents

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

Frequently asked questions

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