mirror of
https://github.com/C9Glax/tranga.git
synced 2025-02-23 15:50:13 +01:00
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/Types", GetV2ConnectorTypes),
|
||||||
new ("GET", @"/v2/Connector/([a-zA-Z]+)/GetManga", GetV2ConnectorConnectorNameGetManga),
|
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 ("GET", @"/v2/Manga/([-A-Za-z0-9]*={0,3})", GetV2MangaInternalId),
|
||||||
new ("DELETE", @"/v2/Manga/([-A-Za-z0-9]*={0,3})", DeleteV2MangaInternalId),
|
new ("DELETE", @"/v2/Manga/([-A-Za-z0-9]*={0,3})", DeleteV2MangaInternalId),
|
||||||
new ("GET", @"/v2/Manga/([-A-Za-z0-9]*={0,3})/Cover", GetV2MangaInternalIdCover),
|
new ("GET", @"/v2/Manga/([-A-Za-z0-9]*={0,3})/Cover", GetV2MangaInternalIdCover),
|
||||||
|
@ -6,7 +6,7 @@ namespace Tranga.Server;
|
|||||||
|
|
||||||
public partial class 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));
|
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>
|
## Manga <sup>[^top](#top)</sup>
|
||||||
|
|
||||||
### <sub></sub> `/v2/Manga`
|
### <sub></sub> `/v2/Mangas`
|
||||||
|
|
||||||
Returns all known Manga.
|
Returns all known Manga.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user