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