refactor user api
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
				
			This commit is contained in:
		| @@ -16,10 +16,10 @@ export class UserService { | ||||
|   } | ||||
|  | ||||
|   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> { | ||||
|     return this.httpClient.put<IUser>(`${this.ApiEndpoint()}/api/v1/currentuser`, user); | ||||
|     return this.httpClient.put<IUser>(`${this.ApiEndpoint()}/api/v1/users/${user.code}`, user); | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user