3.0 KiB
3.0 KiB
API Phase 1 Move Log
Date: 2026-03-15
Scope: Move low-risk endpoints out of api/src/server.ts into dedicated route modules.
Route Registration Changes
- Registered session routes in server.ts
- Registered user routes in server.ts
- Registered health routes in server.ts
Endpoint Movements
GET /health
- Moved to health.ts
- References:
GET /health/db(non-production only)
- Moved to health.ts
- References:
GET /auth/session
- Moved to session.ts
- References:
POST /app/update-notice/ack
- Moved to session.ts
- References:
PATCH /me
- Moved to user.ts
- References:
PATCH /me/password
- Moved to user.ts
- References:
PATCH /me/income-frequency
- Moved to user.ts
- References:
- Currently no frontend direct calls found by static search.
PATCH /user/config
- Moved to user.ts
- References:
Notes
server.tsendpoint blocks for the above routes were removed to prevent duplicate registration.- Existing path contracts were preserved (same method + path).
openPathsand auth/CSRF hook behavior remain unchanged.