[frontend/api] Add BiteUser method
This commit is contained in:
parent
bf5eb688c5
commit
73b5706d05
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ internal class UserControllerModel(ApiClient api)
|
|||
return api.CallNullable<UserResponse>(HttpMethod.Get, "/users/lookup", query);
|
||||
}
|
||||
|
||||
public Task BiteUser(string id) => api.Call(HttpMethod.Post, $"/users/{id}/bite");
|
||||
public Task<bool> FollowUser(string id) => api.CallNullable(HttpMethod.Post, $"/users/{id}/follow");
|
||||
public Task<bool> UnfollowUser(string id) => api.CallNullable(HttpMethod.Post, $"/users/{id}/unfollow");
|
||||
}
|
Loading…
Add table
Reference in a new issue