109. Add user service call (#13)

This commit is contained in:
Art
2021-09-12 14:17:26 +03:00
parent fbd3b08432
commit aa2aa92085

View File

@ -18,6 +18,11 @@ export class UserService {
return this.httpClient
.get<UserPage>(`${this.host}/user`);
}
public addUser(formData: FormData): Observable<User | HttpErrorResponse> {
return this.httpClient
.post<User | HttpErrorResponse>(`${this.host}/user/add`, formData);
}
}
export interface UserPage {