narinder1231 commited on
Commit
1173e65
·
1 Parent(s): 40d9188

update websocket route as per backend update

Browse files
Files changed (2) hide show
  1. .env.example +1 -1
  2. src/services/api/chatService.ts +1 -1
.env.example CHANGED
@@ -1,2 +1,2 @@
1
  VITE_API_URL=http://localhost:8000/api/v1/
2
- VITE_WS_URL=ws://localhost:8000/api/v1
 
1
  VITE_API_URL=http://localhost:8000/api/v1/
2
+ VITE_WS_URL=ws://localhost:8000/ws/v1
src/services/api/chatService.ts CHANGED
@@ -10,5 +10,5 @@ export const createConnection = async (
10
  conversationId: string,
11
  data: ICreateWebrtcConnectionRequest
12
  ) => {
13
- return await axiosClient.post(`/conversations/${conversationId}/webrtc`, data);
14
  };
 
10
  conversationId: string,
11
  data: ICreateWebrtcConnectionRequest
12
  ) => {
13
+ return await axiosClient.post(`/conversations/${conversationId}`, data);
14
  };