mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 21:44:21 +00:00
14 lines
331 B
Python
14 lines
331 B
Python
|
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",
|
||
|
})
|