feat: Add new status and ping route and update help menu
All checks were successful
Build Docker / BuildImage (push) Successful in 1m1s
All checks were successful
Build Docker / BuildImage (push) Successful in 1m1s
This commit is contained in:
@@ -42,6 +42,9 @@ def help():
|
|||||||
"/ip": "Get your IP address",
|
"/ip": "Get your IP address",
|
||||||
"/project": "Get the current project from git",
|
"/project": "Get the current project from git",
|
||||||
"/version": "Get the current version of the website",
|
"/version": "Get the current version of the website",
|
||||||
|
"/page_date?url=URL&verbose=BOOL": "Get the last modified date of a webpage (verbose is optional, default false)",
|
||||||
|
"/status": "Just check if the site is up",
|
||||||
|
"/ping": "Just check if the site is up",
|
||||||
"/help": "Get this help message"
|
"/help": "Get this help message"
|
||||||
},
|
},
|
||||||
"base_url": "/api/v1",
|
"base_url": "/api/v1",
|
||||||
@@ -50,6 +53,10 @@ def help():
|
|||||||
"status": HTTP_OK
|
"status": HTTP_OK
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@api_bp.route("/status")
|
||||||
|
@api_bp.route("/ping")
|
||||||
|
def status():
|
||||||
|
return json_response(request, "200 OK", HTTP_OK)
|
||||||
|
|
||||||
@api_bp.route("/version")
|
@api_bp.route("/version")
|
||||||
def version():
|
def version():
|
||||||
|
|||||||
Reference in New Issue
Block a user