()
| 195 | app = Flask(__name__) |
| 196 | @app.route('/execute', methods=['POST']) |
| 197 | def execute_code(): |
| 198 | data = request.json |
| 199 | user_input = data.get('command') |
| 200 | if not user_input: |
| 201 | return jsonify({"error": "No command provided"}), 400 |
| 202 | input_queue.put(user_input) |
| 203 | return jsonify({"message": "Command received"}), 200 |
| 204 | |
| 205 | @app.route('/status', methods=['GET']) |
| 206 | def get_status(): |
nothing calls this directly
no outgoing calls
no test coverage detected