Created
January 24, 2022 12:12
-
-
Save iamargentum/b73f3f9fb317c51e99505ba647630974 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, request | |
app = Flask(__name__) | |
@app.route("/data-echo", methods=['POST']) | |
def echo(): | |
data = request.get_json() | |
print("received data is ", data) | |
return data | |
if __name__ == '__main__': | |
app.run(host="127.0.0.1", port=5000, debug=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment