Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from flask import Flask, request
- app = Flask(__name__)
- @app.route('/post', methods = ["POST"])
- def post():
- print(request.data)
- return ''
- app.run(host='0.0.0.0', port= 8090)
- from flask import Flask
- app = Flask(__name__)
- @app.route('/')
- def index():
- return 'Hello world'
- if __name__ == '__main__':
- app.run(debug=True, host='0.0.0.0')
Add Comment
Please, Sign In to add comment