Spaces:
Sleeping
Sleeping
Add route without trailing slash for /audit
Browse files- AIReadiness/app/main.py +7 -0
AIReadiness/app/main.py
CHANGED
|
@@ -60,6 +60,13 @@ def index() -> FileResponse:
|
|
| 60 |
base = os.path.dirname(__file__)
|
| 61 |
return FileResponse(os.path.join(base, "static", "index.html"))
|
| 62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
@router.get("/health")
|
| 64 |
def health() -> dict:
|
| 65 |
return {
|
|
|
|
| 60 |
base = os.path.dirname(__file__)
|
| 61 |
return FileResponse(os.path.join(base, "static", "index.html"))
|
| 62 |
|
| 63 |
+
# Add route without trailing slash for compatibility
|
| 64 |
+
@router.get("")
|
| 65 |
+
def index_no_slash() -> FileResponse:
|
| 66 |
+
"""Serve the AI Readiness Audit page (no trailing slash)."""
|
| 67 |
+
base = os.path.dirname(__file__)
|
| 68 |
+
return FileResponse(os.path.join(base, "static", "index.html"))
|
| 69 |
+
|
| 70 |
@router.get("/health")
|
| 71 |
def health() -> dict:
|
| 72 |
return {
|