| 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); | |
| }; | |