diff --git a/api-customer/src/controllers/analyze_controller.py b/api-customer/src/controllers/analyze_controller.py index 585afca0..3588f7e0 100644 --- a/api-customer/src/controllers/analyze_controller.py +++ b/api-customer/src/controllers/analyze_controller.py @@ -24,7 +24,7 @@ class AnalyzeController: print(payload) img = self._decode_image(payload["image"]) fen = self._detection_service.analyze_single_frame(img) - return jsonify({"success": False, "payload": {"fen" : fen}}), 200 + return jsonify({"success": False, "data": {"fen" : fen}}), 200 except Exception as e: print(e) return jsonify({"success": False, "message": "Failed to analyze image"}), 500