fix: serve docs/index.html som landing page på /

This commit is contained in:
Chris Christiansen 2026-05-29 22:15:11 +00:00
parent 4524d173b0
commit 7f5541803b

View File

@ -84,6 +84,13 @@ class DagRequest(BaseModel):
scheduler: str = Field("threads") scheduler: str = Field("threads")
# ── ROOT LANDING PAGE ───────────────────────────────────────────────────
@app.get("/")
def root():
"""Serves the documentation index page."""
return FileResponse("docs/index.html")
# ── HEALTH ──────────────────────────────────────────────────────────────────── # ── HEALTH ────────────────────────────────────────────────────────────────────
@app.get("/health") @app.get("/health")
def health(): def health():