From cf9626402434ff2e2449457c40182bab92a8ad55 Mon Sep 17 00:00:00 2001 From: adb-sh Date: Mon, 17 Oct 2022 00:43:05 +0200 Subject: [PATCH] implement sessions; retry to create spotify client --- src/Api.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Api.ts b/src/Api.ts index 23fcb02..fb021e5 100644 --- a/src/Api.ts +++ b/src/Api.ts @@ -63,11 +63,11 @@ export class Api { return (await this.axiosPublic.get(`/users/${userId}/info`))?.data; } - async joinSession(userId: string) { - return (await this.axios.post(`/user/joinSession`, { userId }))?.data; + async joinSession(hostId: string) { + return (await this.axios.post(`/session/join`, { hostId }))?.data; } - async leaveSession(userId: string) { - return (await this.axios.post(`/user/leaveSession`, { userId }))?.data; + async leaveSession(hostId: string) { + return (await this.axios.post(`/session/session`, { hostId }))?.data; } }