mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
11 lines
330 B
Python
11 lines
330 B
Python
from starlette.requests import Request
|
|
from starlette.responses import *
|
|
from royalnet.constellation import *
|
|
from royalnet.utils import *
|
|
|
|
|
|
class ExampleStar(PageStar):
|
|
path = "/example"
|
|
|
|
async def page(self, request: Request) -> JSONResponse:
|
|
return HTMLResponse("""<html><body><h1>henlo!</h1></body></html>""")
|