abrar6024 commited on
Commit
3574a51
·
1 Parent(s): 1f558e0

updated UI

Browse files
Files changed (1) hide show
  1. 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"}