diff --git a/FreeTubeSync/EndPoints/SearchHistoryEndpoint.cs b/FreeTubeSync/EndPoints/SearchHistoryEndpoint.cs index 38519ed..8908ddc 100644 --- a/FreeTubeSync/EndPoints/SearchHistoryEndpoint.cs +++ b/FreeTubeSync/EndPoints/SearchHistoryEndpoint.cs @@ -8,13 +8,13 @@ public static class SearchHistoryEndpoint { var group = app.MapGroup("searchHistory"); - group.MapGet("/", async (IRepository repository, CancellationToken ct) => + group.MapGet("/", async (IRepository repository, CancellationToken ct) => { var result = await repository.GetAllAsync(ct); return Results.Ok(result); }); - group.MapPost("/", async (IRepository repository, CancellationToken ct, History history) => + group.MapPost("/", async (IRepository repository, CancellationToken ct, SearchHistory history) => { var result = await repository.GetByIdAsync(history._id, ct); if (result != null) @@ -24,7 +24,7 @@ public static class SearchHistoryEndpoint return Results.Ok(); }); - group.MapDelete("/{id}", async (IRepository repository, CancellationToken ct, string id) => + group.MapDelete("/{id}", async (IRepository repository, CancellationToken ct, string id) => { var result = await repository.GetByIdAsync(id, ct); if (result == null) return Results.NotFound();