14 lines
337 B
TypeScript
14 lines
337 B
TypeScript
import axios from "../http-client"
|
|
import type { Uuid } from "../types"
|
|
|
|
export async function test(channel_id: Uuid, sdp: RTCSessionDescriptionInit) {
|
|
const response = await axios.post(`/voice/${channel_id}/connect`, {
|
|
sdp: sdp
|
|
})
|
|
|
|
return response.data.sdp as RTCSessionDescriptionInit
|
|
}
|
|
|
|
export default {
|
|
test
|
|
} |