mirror of
https://github.com/ReVanced/revanced-api.git
synced 2026-01-24 03:31:05 +00:00
feat: better versioning engine
This commit is contained in:
committed by
Alexandre Teles (afterSt0rm)
parent
73252524f1
commit
8d36663610
@@ -20,12 +20,12 @@ from api.models.github import *
|
||||
from api.models.compat import ToolsResponseModel, ContributorsResponseModel
|
||||
from config import compat_repositories, owner
|
||||
|
||||
github: Blueprint = Blueprint("old")
|
||||
compat: Blueprint = Blueprint("old")
|
||||
|
||||
github_backend: Github = Github()
|
||||
|
||||
|
||||
@github.get("/tools")
|
||||
@compat.get("/tools")
|
||||
@openapi.definition(
|
||||
summary="Get patching tools' latest version.", response=[ToolsResponseModel]
|
||||
)
|
||||
@@ -62,7 +62,7 @@ async def tools(request: Request) -> JSONResponse:
|
||||
return json(data, status=200)
|
||||
|
||||
|
||||
@github.get("/contributors")
|
||||
@compat.get("/contributors")
|
||||
@openapi.definition(
|
||||
summary="Get organization-wise contributors.", response=[ContributorsResponseModel]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user