|
|
@ -63,11 +63,11 @@ export class Api {
|
|
|
|
return (await this.axiosPublic.get(`/users/${userId}/info`))?.data;
|
|
|
|
return (await this.axiosPublic.get(`/users/${userId}/info`))?.data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async joinSession(userId: string) {
|
|
|
|
async joinSession(hostId: string) {
|
|
|
|
return (await this.axios.post(`/user/joinSession`, { userId }))?.data;
|
|
|
|
return (await this.axios.post(`/session/join`, { hostId }))?.data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
async leaveSession(userId: string) {
|
|
|
|
async leaveSession(hostId: string) {
|
|
|
|
return (await this.axios.post(`/user/leaveSession`, { userId }))?.data;
|
|
|
|
return (await this.axios.post(`/session/session`, { hostId }))?.data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|