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 7a44050..948fd32 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 @@ -47,6 +47,10 @@ export class HttpService { return this.getRequest(`${this.INTERNAL_API_PATH_PREFIX}/rooms/${roomId}/roles/${secret}`); } + endMeeting(roomId: string): Promise { + return this.deleteRequest(`${this.INTERNAL_API_PATH_PREFIX}/meetings/${roomId}`); + } + generateParticipantToken(tokenOptions: TokenOptions): Promise<{ token: string }> { return this.postRequest(`${this.INTERNAL_API_PATH_PREFIX}/participants/token`, tokenOptions); } diff --git a/frontend/projects/shared-meet-components/src/lib/services/webcomponent-manager/webcomponent-manager.service.ts b/frontend/projects/shared-meet-components/src/lib/services/webcomponent-manager/webcomponent-manager.service.ts index eff7fe1..e5c7792 100644 --- a/frontend/projects/shared-meet-components/src/lib/services/webcomponent-manager/webcomponent-manager.service.ts +++ b/frontend/projects/shared-meet-components/src/lib/services/webcomponent-manager/webcomponent-manager.service.ts @@ -71,7 +71,7 @@ export class WebComponentManagerService { // Moderator only if (this.contextService.isModeratorParticipant()) { const roomId = this.contextService.getRoomId(); - await this.httpService.deleteRoom(roomId); + await this.httpService.endMeeting(roomId); } break; case WebComponentActionType.TOGGLE_CHAT: