From aa2aa92085f58f44ee248d752369449cbe9a8647 Mon Sep 17 00:00:00 2001 From: Art Date: Sun, 12 Sep 2021 14:17:26 +0300 Subject: [PATCH] 109. Add user service call (#13) --- support-portal-frontend/src/app/service/user.service.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/support-portal-frontend/src/app/service/user.service.ts b/support-portal-frontend/src/app/service/user.service.ts index e3190cf..5b93ee6 100644 --- a/support-portal-frontend/src/app/service/user.service.ts +++ b/support-portal-frontend/src/app/service/user.service.ts @@ -18,6 +18,11 @@ export class UserService { return this.httpClient .get(`${this.host}/user`); } + + public addUser(formData: FormData): Observable { + return this.httpClient + .post(`${this.host}/user/add`, formData); + } } export interface UserPage {