[frontend] Add Follow and Unfollow to UserControllerModel
This commit is contained in:
parent
954d42d355
commit
0dd79abca9
1 changed files with 4 additions and 0 deletions
|
@ -24,4 +24,8 @@ internal class UserControllerModel(ApiClient api)
|
|||
if (host != null) query = query.Add("host", host);
|
||||
return api.CallNullable<UserResponse>(HttpMethod.Get, "/users/lookup", query);
|
||||
}
|
||||
|
||||
public Task FollowUser(string id) => api.Call(HttpMethod.Post, $"/users/{id}/follow");
|
||||
|
||||
public Task UnfollowUser(string id) => api.Call(HttpMethod.Post, $"/users/{id}/unfollow");
|
||||
}
|
Loading…
Add table
Reference in a new issue