From 771f557bae5c75540724a9dd763246865471416a Mon Sep 17 00:00:00 2001 From: Arian Nasr Date: Tue, 10 Mar 2026 08:03:28 -0400 Subject: [PATCH] /ping healthcheck endpoint --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index fa75fed..c36f648 100644 --- a/main.py +++ b/main.py @@ -16,6 +16,10 @@ def allowed_file(filename): return '.' in filename and \ filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS +@app.route('/ping') +def ping(): + return 'pong', 200 + @app.route('/', methods=['GET', 'POST']) def upload_file(): if request.method == 'POST':