Create a new route and view function in the app.py file: @app.route("/data") def data(): return jsonify(get_data()). Update the imports: from flask import ...
確定! 回上一頁