remove already added prefix ou route - ws working again

This commit is contained in:
Tiago vasconcelos 2022-09-06 12:30:20 +01:00
parent d96ac5f3ef
commit d2f00435cc

View File

@ -63,7 +63,7 @@ class ConnectionManager:
manager = ConnectionManager()
@copilot_ext.websocket("/copilot/ws/{copilot_id}", name="copilot.websocket_by_id")
@copilot_ext.websocket("/ws/{copilot_id}", name="copilot.websocket_by_id")
async def websocket_endpoint(websocket: WebSocket, copilot_id: str):
await manager.connect(websocket, copilot_id)
try: