mirror of
https://github.com/ReVanced/revanced-api.git
synced 2026-01-28 13:41:03 +00:00
feat: manager-related endpoints
This commit is contained in:
committed by
Alexandre Teles (afterSt0rm)
parent
a8126d785f
commit
3a128c4661
@@ -10,7 +10,7 @@ from sanic import Blueprint, Request
|
||||
from sanic.response import JSONResponse, json
|
||||
from sanic_ext import openapi
|
||||
|
||||
from api.models.socials import ConnectionsResponseModel
|
||||
from api.models.socials import SocialsResponseModel
|
||||
from config import social_links
|
||||
|
||||
socials: Blueprint = Blueprint(os.path.basename(__file__).strip(".py"))
|
||||
@@ -19,7 +19,7 @@ socials: Blueprint = Blueprint(os.path.basename(__file__).strip(".py"))
|
||||
@socials.get("/socials")
|
||||
@openapi.definition(
|
||||
summary="Get ReVanced socials",
|
||||
response=[ConnectionsResponseModel],
|
||||
response=[SocialsResponseModel],
|
||||
)
|
||||
async def root(request: Request) -> JSONResponse:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user