1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00
royalnet/examplepack/stars/example.py

14 lines
357 B
Python
Raw Permalink Normal View History

2019-11-04 11:57:35 +00:00
from starlette.requests import Request
from starlette.responses import *
from royalnet.constellation import *
from royalnet.utils import *
2020-07-31 15:06:54 +00:00
# TODO: delete this file!
2019-11-04 11:57:35 +00:00
class ExampleStar(PageStar):
path = "/example"
async def page(self, request: Request) -> JSONResponse:
return HTMLResponse("""<html><body><h1>henlo!</h1></body></html>""")