From b2dc4088a1dd7107e7509b11bfc68cf032cf8389 Mon Sep 17 00:00:00 2001 From: Art Date: Sun, 12 Sep 2021 14:25:10 +0300 Subject: [PATCH] 110. Update user service call (#13) --- support-portal-frontend/src/app/service/user.service.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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 {