mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
bf59e2de6c
* Add basic role routes * Add API v2 404 handler * Add API v2 home handler pointing to the wiki * Add tons more todos * Add get_*_columns and get_*_column functions for many db models * Modify and add tons of model and controller functions
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},
|
|
)
|