From 64d2aedc3b4e88a2e4b409b7e092bc62e0fb58fb Mon Sep 17 00:00:00 2001 From: "ishak jmilou.ishak" Date: Tue, 21 Jan 2025 14:16:26 +0100 Subject: [PATCH] feat: allow POST method for yolo_results endpoint --- src/Python/flask/web/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Python/flask/web/app.py b/src/Python/flask/web/app.py index 7a73f3d..bb92725 100644 --- a/src/Python/flask/web/app.py +++ b/src/Python/flask/web/app.py @@ -158,7 +158,7 @@ def image(): return "No image available", 404 -@app.route('/yolo_results', methods=['GET']) +@app.route('/yolo_results', methods=['GET', 'POST']) def yolo_results_endpoint(): global yolo_results with lock: