Iceshrimp.NET/Iceshrimp.Frontend/Core/ControllerModels/TimelineControllerModel.cs
2024-11-20 00:48:29 +01:00

12 lines
No EOL
411 B
C#

using Iceshrimp.Frontend.Core.Miscellaneous;
using Iceshrimp.Frontend.Core.Services;
using Iceshrimp.Shared.Schemas.Web;
namespace Iceshrimp.Frontend.Core.ControllerModels;
internal class TimelineControllerModel(ApiClient api)
{
[LinkPagination(20, 80)]
public Task<List<NoteResponse>> GetHomeTimelineAsync(PaginationQuery pq) =>
api.CallAsync<List<NoteResponse>>(HttpMethod.Get, "/timelines/home", pq);
}