Returns some sample data from the backend.
()
| 5 | |
| 6 | @app.route('/data', methods=['GET']) |
| 7 | def get_data(): |
| 8 | """Returns some sample data from the backend.""" |
| 9 | sample_data = { |
| 10 | "message": "Hello from Service B!", |
| 11 | "data": [1, 2, 3, 4, 5] |
| 12 | } |
| 13 | return jsonify(sample_data) |
| 14 | @app.route('/', methods=['GET']) |
| 15 | def main(): |
| 16 | return jsonify({"message": "Hello from backend Flask!"}), 200 |
nothing calls this directly
no outgoing calls
no test coverage detected