1
0
mirror of https://github.com/C9Glax/tranga.git synced 2025-07-05 18:34:16 +02:00

Add "GetAll" Paths to Manga and Jobcontroller

This commit is contained in:
2024-12-16 23:20:31 +01:00
parent 81d22bc022
commit d322445550
2 changed files with 24 additions and 0 deletions

@ -11,6 +11,18 @@ namespace API.Controllers;
[Route("v{v:apiVersion}/[controller]")]
public class MangaController(PgsqlContext context) : Controller
{
/// <summary>
/// Returns all cached Manga
/// </summary>
/// <returns>Array of Manga</returns>
[HttpGet]
[ProducesResponseType<Manga[]>(Status200OK)]
public IActionResult GetAllManga()
{
Manga[] ret = context.Manga.ToArray();
return Ok(ret);
}
/// <summary>
/// Returns all cached Manga with IDs
/// </summary>