Auth
Magic-link login, Google OAuth, password auth, 2FA (TOTP), session management, and profile routes under /auth.
NestJS · Drizzle ORM · PostgreSQL
A production-ready backend for authentication, media management, user administration, system configuration, and CSRF-protected workflows. This page maps every route exposed by the running service.
# health check curl http://localhost:8080/health # get CSRF token curl http://localhost:8080/csrf # protected routes GET /users GET /auth/me POST /auth/magic-link/request
Common entry points for quick API checks.
Modules wired into the API surface.
Magic-link login, Google OAuth, password auth, 2FA (TOTP), session management, and profile routes under /auth.
Admin user CRUD, role management, session revocation, and 2FA reset under /users.
File upload via Cloudinary, listing, update, and delete under /media.
Admin-only activity history for sensitive account and access events under /audit-logs.
Application-level access model and role configuration under /system.
Global CSRF protection, JWT guards, role guards, request throttling, and structured error handling.
Module-level docs under docs/api/.
docs/api/auth.md
docs/api/users.md
docs/api/media.md
docs/api/audit-logs.md
docs/api/system.md
docs/api/health.md
docs/api/csrf.md