Commit Graph

8 Commits

Author SHA1 Message Date
julien 36c1fe805e refactor(routes): extract user and application routes into auth domain
Move /api/cms/user and /api/skydive/applications to a new /api/auth domain.
Users and API key applications are identity/access concerns, not CMS or
skydive content. The auth domain provides a clear boundary for future
middleware hardening (rate limiting, audit logging, etc).

docs: add ADR 0014
2026-05-01 20:43:13 +02:00
julien 96da68e18e chore(deps): upgrade to Express 5 and remove redundant middleware
- Express 4 → 5.2.1
- Remove method-override (unused with Angular HttpClient) and errorhandler (superseded by exceptions.handler.js)
- Remove asyncHandler wrapper from all controllers — Express 5 propagates async rejections natively
- Remove body-parser (redundant, Express 5 includes it internally)
- Patch/minor updates: cors, dotenv, ejs, express-jwt, express-session, jsonwebtoken, morgan, mysql2, sequelize, underscore
- Dev updates: eslint 9.0→9.39, nodemon 2→3, globals, sequelize-cli
- Fix getUser endpoint to include SkydiverProfile data in response
- docs: add ADR 0013, update README
2026-05-01 20:42:39 +02:00
julien 7c16e5d8cb docs(adr): add ADR 0012 — express-validator for input validation 2026-04-26 22:07:55 +02:00
julien cc155214e0 docs(adr): add ADR 0010 (CORS restriction) and 0011 (auth rate limiting) 2026-04-26 20:54:26 +02:00
julien 946436fdaf docs(adr): add ADR 0008 (HMAC-SHA256 API keys) and 0009 (Application to MySQL) 2026-04-26 20:37:33 +02:00
julien 83216e96be chore: remove .gitkeep from docs/decisions now that ADRs exist 2026-04-26 16:52:41 +02:00
julien a9ef4cf629 docs(adr): convert all ADRs to MADR 2.1.2 format
Rewrites all 7 backend ADRs from a custom structure to the MADR 2.1.2
template required by the VS Code ADR Manager extension: bullet metadata
(Status/Date), standardised section headings, "Chosen option: X, because Y"
wording, and explicit Pros/Cons blocks per option.
2026-04-26 16:51:22 +02:00
julien d52795fde3 Add 7 ADRs documenting backend architecture decisions 2026-04-26 16:35:08 +02:00