[frontend/core] Update NoteControllerModel with renotes endpoint
This commit is contained in:
parent
a30693e596
commit
f0cb04d5b7
1 changed files with 3 additions and 0 deletions
|
@ -53,6 +53,9 @@ internal class NoteControllerModel(ApiClient api)
|
||||||
public Task<ValueResponse?> UnrenoteNote(string id) =>
|
public Task<ValueResponse?> UnrenoteNote(string id) =>
|
||||||
api.CallNullable<ValueResponse>(HttpMethod.Post, $"/notes/{id}/unrenote");
|
api.CallNullable<ValueResponse>(HttpMethod.Post, $"/notes/{id}/unrenote");
|
||||||
|
|
||||||
|
public Task<List<UserResponse>?> GetRenotes(string id) =>
|
||||||
|
api.CallNullable<List<UserResponse>>(HttpMethod.Get, $"/notes/{id}/renotes");
|
||||||
|
|
||||||
public Task<ValueResponse?> ReactToNote(string id, string name) =>
|
public Task<ValueResponse?> ReactToNote(string id, string name) =>
|
||||||
api.CallNullable<ValueResponse>(HttpMethod.Post, $"/notes/{id}/react/{name}");
|
api.CallNullable<ValueResponse>(HttpMethod.Post, $"/notes/{id}/react/{name}");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue