[frontend/core] Update NoteControllerModel with renotes endpoint

This commit is contained in:
Lilian 2024-09-26 20:55:48 +02:00
parent a30693e596
commit f0cb04d5b7
No known key found for this signature in database

View file

@ -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}");