solventum-image-metadata/backend/templates
SamoilenkoVadym 20cbd32e62 feat(ui): use Flask HTML templates with FastAPI backend (hybrid mode)
- Copy Flask v3.1 HTML templates (index.html, login.html) to backend/templates/
- Add Jinja2 support to FastAPI main.py
- Update all JavaScript fetch() calls to use /api/* endpoints
- Add JWT authentication to all requests (Authorization: Bearer token)
- Implement automatic token refresh on 401 errors
- Store JWT tokens in localStorage

Benefits:
- 100% identical UI to Flask v3.1 (proven, working design)
- Gold gradient, Montserrat font, all animations preserved
- FastAPI backend (Redis sessions, JWT auth, async)
- No React rewrite needed
- All features work immediately

UI now matches Flask exactly while using modern FastAPI backend.

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-02-09 19:13:02 +00:00
..
index.html feat(ui): use Flask HTML templates with FastAPI backend (hybrid mode) 2026-02-09 19:13:02 +00:00
login.html feat(ui): use Flask HTML templates with FastAPI backend (hybrid mode) 2026-02-09 19:13:02 +00:00