Change GET /v2/Manga to /v2/Mangas
This commit is contained in:
parent
5b22246c41
commit
0735e2c588
@ -23,7 +23,7 @@ public partial class Server : GlobalBase, IDisposable
|
||||
{
|
||||
new ("GET", @"/v2/Connector/Types", GetV2ConnectorTypes),
|
||||
new ("GET", @"/v2/Connector/([a-zA-Z]+)/GetManga", GetV2ConnectorConnectorNameGetManga),
|
||||
new ("GET", @"/v2/Manga", GetV2Manga),
|
||||
new ("GET", @"/v2/Mangas", GetV2Mangas),
|
||||
new ("GET", @"/v2/Manga/([-A-Za-z0-9]*={0,3})", GetV2MangaInternalId),
|
||||
new ("DELETE", @"/v2/Manga/([-A-Za-z0-9]*={0,3})", DeleteV2MangaInternalId),
|
||||
new ("GET", @"/v2/Manga/([-A-Za-z0-9]*={0,3})/Cover", GetV2MangaInternalIdCover),
|
||||
|
@ -6,7 +6,7 @@ namespace Tranga.Server;
|
||||
|
||||
public partial class Server
|
||||
{
|
||||
private ValueTuple<HttpStatusCode, object?> GetV2Manga(GroupCollection groups, Dictionary<string, string> requestParameters)
|
||||
private ValueTuple<HttpStatusCode, object?> GetV2Mangas(GroupCollection groups, Dictionary<string, string> requestParameters)
|
||||
{
|
||||
return new ValueTuple<HttpStatusCode, object?>(HttpStatusCode.OK, GetAllCachedManga().Select(m => m.internalId));
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ Returns the Manga from the specified Manga Connector.
|
||||
|
||||
## Manga <sup>[^top](#top)</sup>
|
||||
|
||||
### <sub>![GET](https://img.shields.io/badge/GET-0f0)</sub> `/v2/Manga`
|
||||
### <sub>![GET](https://img.shields.io/badge/GET-0f0)</sub> `/v2/Mangas`
|
||||
|
||||
Returns all known Manga.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user