1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-30 15:04:18 +00:00
royalnet/royalpack/stars/api_discord_cv.py

12 lines
390 B
Python

from starlette.requests import Request
from starlette.responses import *
from royalnet.constellation import *
from royalnet.utils import *
class ApiDiscordCvStar(PageStar):
path = "/api/discord/cv"
async def page(self, request: Request) -> JSONResponse:
response = await self.constellation.call_herald_event("discord", "discord_cv")
return JSONResponse(response)