mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
18 lines
509 B
Python
18 lines
509 B
Python
|
from app.classes.web.base_api_handler import BaseApiHandler
|
||
|
|
||
|
WIKI_API_LINK = "https://wiki.craftycontrol.com/en/4/docs/API V2"
|
||
|
|
||
|
|
||
|
class ApiIndexHandler(BaseApiHandler):
|
||
|
def get(self):
|
||
|
self.finish_json(
|
||
|
200,
|
||
|
{
|
||
|
"status": "ok",
|
||
|
"data": {
|
||
|
"version": self.controller.helper.get_version_string(),
|
||
|
"message": f"Please see the API documentation at {WIKI_API_LINK}",
|
||
|
},
|
||
|
},
|
||
|
)
|