From 2c48aced78963f5835277513f7bfaaf77d660203 Mon Sep 17 00:00:00 2001 From: SebbieMzingKe Date: Thu, 3 Jul 2025 14:34:23 +0300 Subject: [PATCH] feat: add /ping route for cron --- app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app.py b/app.py index 2be4057..83091f8 100644 --- a/app.py +++ b/app.py @@ -37,6 +37,10 @@ # "port": config("DB_PORT", cast=int) # } +@app.route("/ping", methods=["GET"]) +def ping(): + return "pong", 200 + #mysql connection def get_db_connection(): connection = None