From e66ab49e7d4e1e8f240826231ff488fe760f21a6 Mon Sep 17 00:00:00 2001 From: Glax Date: Mon, 16 Dec 2024 22:59:52 +0100 Subject: [PATCH] ConnectorController.cs -> SearchController.cs --- .../{ConnectorController.cs => SearchController.cs} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename API/Controllers/{ConnectorController.cs => SearchController.cs} (97%) diff --git a/API/Controllers/ConnectorController.cs b/API/Controllers/SearchController.cs similarity index 97% rename from API/Controllers/ConnectorController.cs rename to API/Controllers/SearchController.cs index 7c1f8ca..4c4b9ce 100644 --- a/API/Controllers/ConnectorController.cs +++ b/API/Controllers/SearchController.cs @@ -11,13 +11,13 @@ namespace API.Controllers; [ApiController] [Produces("application/json")] [Route("v{v:apiVersion}/[controller]")] -public class ConnectorController(PgsqlContext context) : Controller +public class SearchController(PgsqlContext context) : Controller { /// /// Get all available Connectors (Scanlation-Sites) /// /// Array of MangaConnector - [HttpGet] + [HttpGet("GetConnectors")] [ProducesResponseType(Status200OK)] public IActionResult GetConnectors() { @@ -30,7 +30,7 @@ public class ConnectorController(PgsqlContext context) : Controller /// /// Name/Title of the Manga /// Array of Manga - [HttpPost("SearchManga/{name}")] + [HttpPost("Manga/{name}")] [ProducesResponseType(Status500InternalServerError)] public IActionResult SearchMangaGlobal(string name) { @@ -60,7 +60,7 @@ public class ConnectorController(PgsqlContext context) : Controller /// Manga-Connector-ID /// Name/Title of the Manga /// Manga - [HttpPost("{id}/SearchManga/{name}")] + [HttpPost("Connector/{id}/Manga/{name}")] [ProducesResponseType(Status200OK)] [ProducesResponseType(Status404NotFound)] [ProducesResponseType(Status500InternalServerError)]