From 6b0cefbc7c043fa1940ed8b9fed264bbf968cc2b Mon Sep 17 00:00:00 2001 From: Glax Date: Mon, 16 Dec 2024 23:19:59 +0100 Subject: [PATCH] Simplify SearchPaths --- API/Controllers/SearchController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/API/Controllers/SearchController.cs b/API/Controllers/SearchController.cs index 0f6c795..3b92bf0 100644 --- a/API/Controllers/SearchController.cs +++ b/API/Controllers/SearchController.cs @@ -19,7 +19,7 @@ public class SearchController(PgsqlContext context) : Controller /// /// Name/Title of the Manga /// Array of Manga - [HttpPost("Manga/{name}")] + [HttpPost("{name}")] [ProducesResponseType(Status500InternalServerError)] public IActionResult SearchMangaGlobal(string name) { @@ -49,7 +49,7 @@ public class SearchController(PgsqlContext context) : Controller /// Manga-Connector-ID /// Name/Title of the Manga /// Manga - [HttpPost("Connector/{id}/Manga/{name}")] + [HttpPost("{id}/{name}")] [ProducesResponseType(Status200OK)] [ProducesResponseType(Status404NotFound)] [ProducesResponseType(Status500InternalServerError)]