Spaces:
Running
Running
ajaxwin commited on
Commit ·
7940abd
1
Parent(s): c27e659
fix: update file path for landing page in root endpoint
Browse files- server/app.py +1 -1
server/app.py
CHANGED
|
@@ -115,7 +115,7 @@ def root(request: Request):
|
|
| 115 |
Landing page with human-readable description and API summary. Also serves as a health check.
|
| 116 |
"""
|
| 117 |
BASE_DIR = Path(__file__).resolve().parent
|
| 118 |
-
return FileResponse(BASE_DIR / "
|
| 119 |
|
| 120 |
@app.get("/api")
|
| 121 |
def api_root():
|
|
|
|
| 115 |
Landing page with human-readable description and API summary. Also serves as a health check.
|
| 116 |
"""
|
| 117 |
BASE_DIR = Path(__file__).resolve().parent
|
| 118 |
+
return FileResponse(BASE_DIR / "index.html", media_type="text/html", status_code=200)
|
| 119 |
|
| 120 |
@app.get("/api")
|
| 121 |
def api_root():
|