diff --git a/support-portal-frontend/src/app/service/user.service.ts b/support-portal-frontend/src/app/service/user.service.ts index 5b93ee6..6e184e3 100644 --- a/support-portal-frontend/src/app/service/user.service.ts +++ b/support-portal-frontend/src/app/service/user.service.ts @@ -23,6 +23,13 @@ export class UserService { return this.httpClient .post(`${this.host}/user/add`, formData); } + + public updateUser(formData: FormData): Observable { + let currentUsername = formData.get(`currentUsername`); + return this.httpClient + .put(`${this.host}/user/${currentUsername}`, formData); + } + } export interface UserPage {