keepme / src /services /api /chatService.ts
narinder1231's picture
update websocket route as per backend update
1173e65
raw
history blame contribute delete
519 Bytes
import axiosClient from "./axiosClient";
import { ICreateConnectionRequest } from "../../interfaces/conversation";
import { ICreateWebrtcConnectionRequest } from "../../interfaces/webrtc";
export const createConversation = async (data: ICreateConnectionRequest) => {
return await axiosClient.post("/conversations", data);
};
export const createConnection = async (
conversationId: string,
data: ICreateWebrtcConnectionRequest
) => {
return await axiosClient.post(`/conversations/${conversationId}`, data);
};