Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

how to receive request in flask

from flask import Flask, request, jsonify

app = Flask(__name__)

@app.route('/foo', methods=['POST']) 
def foo():
    data = request.json
    return jsonify(data)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #receive #request #flask
ADD COMMENT
Topic
Name
3+3 =