Update main.py
Browse files
main.py
CHANGED
|
@@ -110,7 +110,11 @@ async def home():
|
|
| 110 |
if os.path.exists(index_path):
|
| 111 |
return FileResponse(index_path)
|
| 112 |
|
| 113 |
-
return {"error": f"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
|
| 115 |
@app.get("/api/v1/system/status")
|
| 116 |
def system_status():
|
|
|
|
| 110 |
if os.path.exists(index_path):
|
| 111 |
return FileResponse(index_path)
|
| 112 |
|
| 113 |
+
return {"error": f"File not found at: {index_path}"}
|
| 114 |
+
|
| 115 |
+
@app.get("/docs/api", include_in_schema=False)
|
| 116 |
+
async def home_alias():
|
| 117 |
+
return await home()
|
| 118 |
|
| 119 |
@app.get("/api/v1/system/status")
|
| 120 |
def system_status():
|