how to send data from flask to html code example
Example: posted data to flask
from flask import Flask, request, jsonify
app = Flask(__name__)
@app.route('/post')
def post():
r = request.json
return jsonify(res)
app.run()
from flask import Flask, request, jsonify
app = Flask(__name__)
@app.route('/post')
def post():
r = request.json
return jsonify(res)
app.run()