send data to flask with python 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()