1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2025-02-25 14:15:04 +00:00
royalnet/examplepack/stars/api_example.py

14 lines
331 B
Python
Raw Normal View History

2020-01-14 19:33:23 +01:00
from starlette.requests import Request
from starlette.responses import *
from royalnet.constellation import *
from royalnet.utils import *
class ApiExampleStar(PageStar):
path = "/api/example"
async def page(self, request: Request) -> JSONResponse:
return JSONResponse({
"hello": "world",
})