From d7d4dbed8b11460ff7ab6fed242db9de44c081fb Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 16 Oct 2025 17:10:09 +1100 Subject: [PATCH] feat: Add new status and ping route and update help menu --- blueprints/api.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/blueprints/api.py b/blueprints/api.py index ed69315..dc70b3e 100644 --- a/blueprints/api.py +++ b/blueprints/api.py @@ -42,6 +42,9 @@ def help(): "/ip": "Get your IP address", "/project": "Get the current project from git", "/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" }, "base_url": "/api/v1", @@ -50,6 +53,10 @@ def help(): "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") def version():