From 3242058c4f7ec7e55b19028743b25f38fbd1e948 Mon Sep 17 00:00:00 2001 From: Francisco Salas Date: Mon, 15 Feb 2021 11:03:24 +0100 Subject: [PATCH] refactor user api --- projects/common/src/fm/services/user.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/common/src/fm/services/user.service.ts b/projects/common/src/fm/services/user.service.ts index d6c7add..2986fb1 100644 --- a/projects/common/src/fm/services/user.service.ts +++ b/projects/common/src/fm/services/user.service.ts @@ -16,10 +16,10 @@ export class UserService { } getCurrentUser(): Observable { - return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/currentuser`); + return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/users/currentuser`); } updateCurrentUser(user: IUser): Observable { - return this.httpClient.put(`${this.ApiEndpoint()}/api/v1/currentuser`, user); + return this.httpClient.put(`${this.ApiEndpoint()}/api/v1/users/${user.code}`, user); } }