From 7479dbf8f85e8369712e8d21030d328927e79e77 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 7 Sep 2024 16:21:42 -0500 Subject: [PATCH] minor updates --- Controllers/ComicController.cs | 6 +++--- Controllers/TaskController.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Controllers/ComicController.cs b/Controllers/ComicController.cs index c714e2f..d262e64 100644 --- a/Controllers/ComicController.cs +++ b/Controllers/ComicController.cs @@ -33,9 +33,9 @@ public class ComicController(ComicsContext context, ILogger log [HttpGet] [ProducesResponseType>(StatusCodes.Status200OK)] public async Task SearchComics( - [FromQuery(Name = "TitleSearch")] + [FromQuery(Name = "title")] string? titleSearch, - [FromQuery(Name = "DescriptionSearch")] + [FromQuery(Name = "description")] string? descSearch, [FromQuery] string[] authors, @@ -43,7 +43,7 @@ public class ComicController(ComicsContext context, ILogger log string[] tags, [FromQuery] string? pages, - [FromQuery] + [FromQuery(Name = "hash")] string? xxhash64Hex, [FromQuery] bool? exists, diff --git a/Controllers/TaskController.cs b/Controllers/TaskController.cs index 4d038dc..1f1cdd8 100644 --- a/Controllers/TaskController.cs +++ b/Controllers/TaskController.cs @@ -26,7 +26,7 @@ public class TaskController( private readonly CancellationTokenSource cancellationToken = new(); [HttpGet] [ProducesResponseType>(StatusCodes.Status200OK)] - public Task GetTasks( + public IActionResult GetTasks( [FromQuery] [DefaultValue(20)] int limit