From cf447c08926e6fc751ea99d9bc58c9319c519c07 Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Mon, 24 Mar 2025 13:10:08 +0100 Subject: [PATCH] frontend: Refactor API path constants in HttpService --- .../src/lib/services/http/http.service.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 016d830..9a9f0cc 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 @@ -77,19 +77,19 @@ export class HttpService { } login(body: { username: string; password: string }): Promise<{ message: string }> { - return this.postRequest(`${this.pathPrefix}/${this.apiVersion}/auth/login`, body); + return this.postRequest(`${this.API_PATH_PREFIX}/${this.API_V1_VERSION}/auth/login`, body); } logout(): Promise<{ message: string }> { - return this.postRequest(`${this.pathPrefix}/${this.apiVersion}/auth/logout`); + return this.postRequest(`${this.API_PATH_PREFIX}/${this.API_V1_VERSION}/auth/logout`); } refreshToken(): Promise<{ message: string }> { - return this.postRequest(`${this.pathPrefix}/${this.apiVersion}/auth/refresh`); + return this.postRequest(`${this.API_PATH_PREFIX}/${this.API_V1_VERSION}/auth/refresh`); } getProfile(): Promise { - return this.getRequest(`${this.pathPrefix}/${this.apiVersion}/auth/profile`); + return this.getRequest(`${this.API_PATH_PREFIX}/${this.API_V1_VERSION}/auth/profile`); } getRecordings(continuationToken?: string): Promise<{ recordings: RecordingInfo[]; continuationToken: string }> {