Change field name

This commit is contained in:
2026-01-05 21:13:45 +01:00
parent 76b8c76af6
commit c754e4c17f

View File

@@ -24,7 +24,7 @@ class AnalyzeController:
print(payload) print(payload)
img = self._decode_image(payload["image"]) img = self._decode_image(payload["image"])
fen = self._detection_service.analyze_single_frame(img) 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: except Exception as e:
print(e) print(e)
return jsonify({"success": False, "message": "Failed to analyze image"}), 500 return jsonify({"success": False, "message": "Failed to analyze image"}), 500