tliu93
a9830c42d8
M2-T11: serve React SPA from FastAPI and remove Jinja pages
- app/main.py serves the SPA build (SPA_DIST_DIR, default frontend/dist):
mounts /assets and a GET catch-all returning index.html for client routes;
catch-all 404s on /api/*, never swallows /docs, /openapi.json, /static, assets,
ingestion/ticktick/status; skips SPA serving when dist absent (backend-only CI)
- delete app/api/routes/pages.py, app/api/routes/auth.py, app/templates/
(all replaced by /api/* + SPA; auth service layer kept)
- remove/replace Jinja page tests (JSON coverage already in test_api_*);
add tests/test_spa_hosting.py for the fallback contract
- regenerate openapi/ (Jinja paths gone) and frontend schema.d.ts
2026-06-13 15:20:50 +02:00
..
2026-06-12 16:57:54 +02:00
2026-06-13 15:20:50 +02:00
2026-06-12 23:24:17 +02:00
2026-06-12 23:33:08 +02:00
2026-06-13 15:20:50 +02:00
2026-06-13 15:20:50 +02:00
2026-06-13 15:20:50 +02:00
2026-06-12 16:57:54 +02:00
2026-06-12 20:48:34 +02:00
2026-06-12 16:50:05 +02:00
2026-04-20 11:48:48 +02:00
2026-06-12 16:50:05 +02:00
2026-06-12 19:11:13 +02:00
2026-06-12 16:50:05 +02:00
2026-06-13 15:20:50 +02:00
2026-06-13 15:20:50 +02:00
2026-06-13 15:20:50 +02:00
2026-06-13 15:20:50 +02:00