From 29d21f06e542085b6d956265b35fc2261d10d3c5 Mon Sep 17 00:00:00 2001 From: glax Date: Mon, 1 Sep 2025 21:26:34 +0200 Subject: [PATCH] Move endpoint to get downloading manga --- API/Controllers/MangaController.cs | 14 ++++++++++++++ API/Controllers/QueryController.cs | 16 +--------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/API/Controllers/MangaController.cs b/API/Controllers/MangaController.cs index 322ae28..1082adb 100644 --- a/API/Controllers/MangaController.cs +++ b/API/Controllers/MangaController.cs @@ -43,6 +43,20 @@ public class MangaController(MangaContext context) : Controller return Ok(context.Mangas.Select(m => m.Key).ToArray()); } + /// + /// Returns all that are being downloaded from at least one + /// + /// + [HttpGet("Downloading")] + [ProducesResponseType(Status200OK, "application/json")] + public IActionResult GetMangaDownloading() + { + Manga[] ret = context.MangaIncludeAll() + .Where(m => m.MangaConnectorIds.Any(id => id.UseForDownload)) + .ToArray(); + return Ok(ret); + } + /// /// Returns all cached with /// diff --git a/API/Controllers/QueryController.cs b/API/Controllers/QueryController.cs index b8c692d..27b1af1 100644 --- a/API/Controllers/QueryController.cs +++ b/API/Controllers/QueryController.cs @@ -65,21 +65,7 @@ public class QueryController(MangaContext context) : Controller } /// - /// Returns all that are being downloaded from at least one - /// - /// - [HttpGet("Manga/Downloading")] - [ProducesResponseType(Status200OK, "application/json")] - public IActionResult GetMangaDownloading() - { - Manga[] ret = context.MangaIncludeAll() - .Where(m => m.MangaConnectorIds.Any(id => id.UseForDownload)) - .ToArray(); - return Ok(ret); - } - - /// - /// Returns with names similar to (identified by + /// Returns with names similar to (identified by ) /// /// Key of ///