mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
10 lines
268 B
Python
10 lines
268 B
Python
|
from app.classes.web.base_api_handler import BaseApiHandler
|
||
|
|
||
|
|
||
|
class ApiNotFoundHandler(BaseApiHandler):
|
||
|
def get(self, page: str):
|
||
|
self.finish_json(
|
||
|
404,
|
||
|
{"status": "error", "error": "API_HANDLER_NOT_FOUND", "page": page},
|
||
|
)
|