Hemang Thakur commited on
Commit
d576baf
·
1 Parent(s): e0ab505

removed message-sse from catch-all route

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -546,7 +546,7 @@ app.mount("/static", StaticFiles(directory="frontend/build/static", html=True),
546
  # Catch-all route for frontend paths.
547
  @app.get("/{full_path:path}")
548
  async def serve_frontend(full_path: str, request: Request):
549
- if full_path.startswith("action") or full_path in ["settings", "message-sse", "stop"]:
550
  raise HTTPException(status_code=404, detail="Not Found")
551
 
552
  index_path = os.path.join("frontend", "build", "index.html")
 
546
  # Catch-all route for frontend paths.
547
  @app.get("/{full_path:path}")
548
  async def serve_frontend(full_path: str, request: Request):
549
+ if full_path.startswith("action") or full_path in ["settings", "stop"]:
550
  raise HTTPException(status_code=404, detail="Not Found")
551
 
552
  index_path = os.path.join("frontend", "build", "index.html")