diff --git a/frontend/projects/shared-meet-components/src/lib/services/http/http.service.ts b/frontend/projects/shared-meet-components/src/lib/services/http/http.service.ts index b26dd0e..f6004b6 100644 --- a/frontend/projects/shared-meet-components/src/lib/services/http/http.service.ts +++ b/frontend/projects/shared-meet-components/src/lib/services/http/http.service.ts @@ -70,10 +70,11 @@ export class HttpService { * @returns {Promise} A promise that resolves to the global preferences. */ getSecurityPreferences(): Promise { - return this.getRequest(`${this.API_PATH_PREFIX}/${this.API_V1_VERSION}/preferences/security`); + return this.getRequest(`${this.INTERNAL_API_PATH_PREFIX}/${this.API_V1_VERSION}/preferences/security`); } /** + * TODO: Delete this method * Retrieves the room preferences. * * @returns {Promise} A promise that resolves to the room preferences. @@ -88,8 +89,8 @@ export class HttpService { * @param preferences - The room preferences to be saved. * @returns A promise that resolves when the preferences have been successfully saved. */ - saveRoomPreferences(preferences: MeetRoomPreferences): Promise { - return this.putRequest(`${this.API_PATH_PREFIX}/preferences/room`, preferences); + updateRoomPreferences(roomId: string, preferences: MeetRoomPreferences): Promise { + return this.putRequest(`${this.INTERNAL_API_PATH_PREFIX}/room/${roomId}`, preferences); } login(body: { username: string; password: string }): Promise<{ message: string }> { @@ -119,11 +120,11 @@ export class HttpService { } startRecording(roomId: string): Promise { - return this.postRequest(`${this.API_PATH_PREFIX}/${this.API_V1_VERSION}/recordings`, { roomId }); + return this.postRequest(`${this.INTERNAL_API_PATH_PREFIX}/${this.API_V1_VERSION}/recordings`, { roomId }); } stopRecording(recordingId: string): Promise { - return this.putRequest(`${this.API_PATH_PREFIX}/${this.API_V1_VERSION}/recordings/${recordingId}`); + return this.putRequest(`${this.INTERNAL_API_PATH_PREFIX}/${this.API_V1_VERSION}/recordings/${recordingId}`); } deleteRecording(recordingId: string): Promise { diff --git a/frontend/projects/shared-meet-components/src/lib/services/room/room.service.ts b/frontend/projects/shared-meet-components/src/lib/services/room/room.service.ts index 21f22a5..59922f1 100644 --- a/frontend/projects/shared-meet-components/src/lib/services/room/room.service.ts +++ b/frontend/projects/shared-meet-components/src/lib/services/room/room.service.ts @@ -55,9 +55,9 @@ export class RoomService { * @param {RoomPreferences} preferences - The preferences to be saved. * @returns {Promise} A promise that resolves when the preferences have been saved. */ - async saveRoomPreferences(preferences: MeetRoomPreferences): Promise { + async saveRoomPreferences(roomId: string, preferences: MeetRoomPreferences): Promise { this.log.d('Saving room preferences', preferences); - await this.httpService.saveRoomPreferences(preferences); + await this.httpService.updateRoomPreferences(roomId, preferences); this.roomPreferences = preferences; } }