Authentication API
POST /api/auth/register
Section titled “POST /api/auth/register”Register a new user. Body validated via registerBodySchema (drizzle-zod).
{ "email": "admin@example.com", "password": "securepassword", "role": "ADMIN"}POST /api/auth/login
Section titled “POST /api/auth/login”{ "email": "admin@example.com", "password": "securepassword"}Returns { "token": "...", "user": { ... } }.
GET /api/me
Section titled “GET /api/me”Requires Authorization: Bearer <token>. Returns the current user profile.