diff --git a/src/app/user/services/user.service.ts b/src/app/user/services/user.service.ts index 8c0aeabe57435f3266a47d3b6675d20d77143446..1385b94d5daf2a213f264bad1f9a2e50b972c5e6 100644 --- a/src/app/user/services/user.service.ts +++ b/src/app/user/services/user.service.ts @@ -80,7 +80,7 @@ export class UserService { ), mergeMap(() => { return this._http.post<ILoginResponse>( - `${APP_CONFIG.authentication}login/legacy`, + `${APP_CONFIG.authentication.url}login/legacy`, form, { withCredentials: true }, ); @@ -94,15 +94,15 @@ export class UserService { } logout(): Observable<boolean> { - return this._http.get<boolean>(`${APP_CONFIG.authentication}logout`, { withCredentials: true }); + return this._http.get<boolean>(`${APP_CONFIG.authentication.url}logout`, { withCredentials: true }); } getUserInfo(): Observable<IUserInfo> { - return this._http.get<IUserInfo>(`${APP_CONFIG.authentication}user`, { withCredentials: true }); + return this._http.get<IUserInfo>(`${APP_CONFIG.authentication.url}user`, { withCredentials: true }); } getPublicKey(): Observable<any> { - return this._http.get<any>(`${APP_CONFIG.middlewareLegacyAuth}publicKey`).pipe( + return this._http.get<any>(`${APP_CONFIG.middlewareLegacyAuth.url}publicKey`).pipe( map( (res) => { return res.publicKey;