Merge branch 'develop' of https://git.akkerweb.nl/FarmMaps/FarmMapsLib into develop
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Willem Dantuma 2021-02-15 11:34:27 +01:00
commit f802f41bbb

View File

@ -16,10 +16,10 @@ export class UserService {
} }
getCurrentUser(): Observable<IUser> { getCurrentUser(): Observable<IUser> {
return this.httpClient.get<IUser>(`${this.ApiEndpoint()}/api/v1/currentuser`); return this.httpClient.get<IUser>(`${this.ApiEndpoint()}/api/v1/users/currentuser`);
} }
updateCurrentUser(user: IUser): Observable<IUser> { updateCurrentUser(user: IUser): Observable<IUser> {
return this.httpClient.put<IUser>(`${this.ApiEndpoint()}/api/v1/currentuser`, user); return this.httpClient.put<IUser>(`${this.ApiEndpoint()}/api/v1/users/${user.code}`, user);
} }
} }