109. Add user service call (#13)
This commit is contained in:
@ -18,6 +18,11 @@ export class UserService {
|
|||||||
return this.httpClient
|
return this.httpClient
|
||||||
.get<UserPage>(`${this.host}/user`);
|
.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 {
|
export interface UserPage {
|
||||||
|
|||||||
Reference in New Issue
Block a user