feat: allow POST method for yolo_results endpoint

This commit is contained in:
ishak jmilou.ishak
2025-01-21 14:16:26 +01:00
parent 6597cb133a
commit 64d2aedc3b

View File

@@ -158,7 +158,7 @@ def image():
return "No image available", 404 return "No image available", 404
@app.route('/yolo_results', methods=['GET']) @app.route('/yolo_results', methods=['GET', 'POST'])
def yolo_results_endpoint(): def yolo_results_endpoint():
global yolo_results global yolo_results
with lock: with lock: