File size: 519 Bytes
0489741 1173e65 0489741 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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);
};
|