1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-30 15:04:18 +00:00
royalnet/examplepack/stars/api_excsample.py

14 lines
336 B
Python
Raw Normal View History

2020-01-14 18:33:23 +00:00
from starlette.requests import Request
from starlette.responses import *
from royalnet.constellation import *
from royalnet.utils import *
class ApiExcsampleStar(ExceptionStar):
error = 404
async def page(self, request: Request) -> JSONResponse:
return JSONResponse({
"error": "404 not found",
})