Spaces:
Sleeping
Sleeping
updated UI
Browse files- server/app.py +6 -0
server/app.py
CHANGED
|
@@ -631,6 +631,12 @@ async def root():
|
|
| 631 |
return HTMLResponse(content=HTML_CONTENT)
|
| 632 |
|
| 633 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 634 |
@app.get("/health")
|
| 635 |
async def health():
|
| 636 |
return {"status": "ok"}
|
|
|
|
| 631 |
return HTMLResponse(content=HTML_CONTENT)
|
| 632 |
|
| 633 |
|
| 634 |
+
@app.post("/reset")
|
| 635 |
+
async def reset():
|
| 636 |
+
"""Reset endpoint called by the frontend to clear session state."""
|
| 637 |
+
return {"status": "reset", "message": "Session reset successfully"}
|
| 638 |
+
|
| 639 |
+
|
| 640 |
@app.get("/health")
|
| 641 |
async def health():
|
| 642 |
return {"status": "ok"}
|