4.3 KiB
4.3 KiB
API Phase 2 Move Log
Date: 2026-03-16
Scope: Move auth + account endpoints out of api/src/server.ts into a dedicated route module.
Route Registration Changes
- Registered auth/account routes in server.ts
- New route module: auth-account.ts
Endpoint Movements
POST /auth/register
- Moved to auth-account.ts
- References:
POST /auth/login
- Moved to auth-account.ts
- References:
POST /auth/logout
- Moved to auth-account.ts
- References:
POST /auth/verify
- Moved to auth-account.ts
- References:
POST /auth/verify/resend
- Moved to auth-account.ts
- References:
POST /auth/forgot-password/request
- Moved to auth-account.ts
- References:
POST /auth/forgot-password/confirm
- Moved to auth-account.ts
- References:
POST /account/delete-request
- Moved to auth-account.ts
- References:
POST /account/confirm-delete
- Moved to auth-account.ts
- References:
POST /auth/refresh
- Moved to auth-account.ts
- References:
Notes
server.tsauth/account endpoint blocks were removed to prevent duplicate registration.- Existing path contracts were preserved (same method + path + response shapes).
- Existing auth helpers (
issueEmailToken, cooldown checks, security logging, lockout tracking) are still sourced fromserver.tsand injected into the route module.