fix: add /api/health alias endpoint

Adds GET /api/health as alias for /health — fixes frontend 404.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Gros Frumos 2026-03-21 07:18:56 +02:00
parent fd60863e9c
commit 9a450d2a84

View file

@ -111,6 +111,7 @@ app.add_middleware(
@app.get("/health") @app.get("/health")
@app.get("/api/health")
async def health() -> dict[str, Any]: async def health() -> dict[str, Any]:
return {"status": "ok", "timestamp": int(time.time())} return {"status": "ok", "timestamp": int(time.time())}