mirror of
https://github.com/C9Glax/tranga.git
synced 2025-09-10 03:48:19 +02:00
Fix return of GET MangaConnector
This commit is contained in:
@@ -20,7 +20,7 @@ public class MangaConnectorController(MangaContext context) : Controller
|
|||||||
[ProducesResponseType<MangaConnector[]>(Status200OK, "application/json")]
|
[ProducesResponseType<MangaConnector[]>(Status200OK, "application/json")]
|
||||||
public IActionResult GetConnectors()
|
public IActionResult GetConnectors()
|
||||||
{
|
{
|
||||||
return Ok(Tranga.MangaConnectors.Select(c => c.Name).ToArray());
|
return Ok(Tranga.MangaConnectors.ToArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -48,7 +48,6 @@ public class MangaConnectorController(MangaContext context) : Controller
|
|||||||
[ProducesResponseType<MangaConnector[]>(Status200OK, "application/json")]
|
[ProducesResponseType<MangaConnector[]>(Status200OK, "application/json")]
|
||||||
public IActionResult GetEnabledConnectors()
|
public IActionResult GetEnabledConnectors()
|
||||||
{
|
{
|
||||||
|
|
||||||
return Ok(Tranga.MangaConnectors.Where(c => c.Enabled).ToArray());
|
return Ok(Tranga.MangaConnectors.Where(c => c.Enabled).ToArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user