.
This commit is contained in:
14
app/lib/api/client/test.ts
Normal file
14
app/lib/api/client/test.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user