Spaces:
Sleeping
Sleeping
LearnView Pro: Clean Production Build
Browse files
main.py
CHANGED
|
@@ -128,6 +128,11 @@ def decode_frame(byte_data: bytes):
|
|
| 128 |
|
| 129 |
# --- DISPATCHER ENDPOINTS ---
|
| 130 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
@app.post("/purge/{session_id}")
|
| 132 |
async def purge_session_artifacts(session_id: str):
|
| 133 |
"""Scans TEMP_DIR for files related to session_id and deletes them."""
|
|
|
|
| 128 |
|
| 129 |
# --- DISPATCHER ENDPOINTS ---
|
| 130 |
|
| 131 |
+
@app.get("/")
|
| 132 |
+
async def root():
|
| 133 |
+
return {"message": "LearnView Pro Diagnostic Hub is Online", "docs": "/docs"}
|
| 134 |
+
|
| 135 |
+
|
| 136 |
@app.post("/purge/{session_id}")
|
| 137 |
async def purge_session_artifacts(session_id: str):
|
| 138 |
"""Scans TEMP_DIR for files related to session_id and deletes them."""
|