1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 21:44:21 +00:00
royalnet/royalpack/stars/api_discord_cv.py

13 lines
386 B
Python
Raw Normal View History

2019-11-29 19:05:09 +00:00
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:
2019-12-29 23:07:48 +00:00
response = await self.interface.call_herald_event("discord", "discord_cv")
2019-11-29 19:05:09 +00:00
return JSONResponse(response)