aw-1686 expand user profile; added put operation
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:
parent
946cbc6533
commit
6252cc120b
@ -3,4 +3,14 @@ export interface IUser {
|
||||
name?: string;
|
||||
email?: string;
|
||||
claims: any;
|
||||
}
|
||||
firstName?: string;
|
||||
lastName?: string;
|
||||
address?: string;
|
||||
postalCode?: string;
|
||||
city?: string;
|
||||
country?: string;
|
||||
phone?: string;
|
||||
mobile?: string;
|
||||
organisation?: string;
|
||||
cocNumber?: string;
|
||||
}
|
@ -18,4 +18,8 @@ export class UserService {
|
||||
getCurrentUser(): Observable<IUser> {
|
||||
return this.httpClient.get<IUser>(`${this.ApiEndpoint()}/api/v1/currentuser`);
|
||||
}
|
||||
|
||||
updateCurrentUser(user: IUser): Observable<IUser> {
|
||||
return this.httpClient.put<IUser>(`${this.ApiEndpoint()}/api/v1/currentuser`, user);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user