[frontend/core] Update NoteControllerModel with likes endpoint
This commit is contained in:
parent
3a4738d1fd
commit
0b40aea8d4
1 changed files with 3 additions and 0 deletions
|
@ -40,6 +40,9 @@ internal class NoteControllerModel(ApiClient api)
|
|||
public Task<ValueResponse?> UnlikeNote(string id) =>
|
||||
api.CallNullable<ValueResponse>(HttpMethod.Post, $"/notes/{id}/unlike");
|
||||
|
||||
public Task<List<UserResponse>?> GetNoteLikes(string id) =>
|
||||
api.CallNullable<List<UserResponse>>(HttpMethod.Get, $"/notes/{id}/likes");
|
||||
|
||||
public Task<ValueResponse?> RenoteNote(string id, NoteVisibility? visibility = null)
|
||||
{
|
||||
var query = new QueryString();
|
||||
|
|
Loading…
Add table
Reference in a new issue