fix: serve docs/index.html som landing page på /
This commit is contained in:
parent
4524d173b0
commit
7f5541803b
7
main.py
7
main.py
|
|
@ -84,6 +84,13 @@ class DagRequest(BaseModel):
|
|||
scheduler: str = Field("threads")
|
||||
|
||||
|
||||
# ── ROOT LANDING PAGE ───────────────────────────────────────────────────
|
||||
@app.get("/")
|
||||
def root():
|
||||
"""Serves the documentation index page."""
|
||||
return FileResponse("docs/index.html")
|
||||
|
||||
|
||||
# ── HEALTH ────────────────────────────────────────────────────────────────────
|
||||
@app.get("/health")
|
||||
def health():
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user