Guest User

Untitled

a guest
Feb 17th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. from flask import Flask, request
  2.  
  3. app = Flask(__name__)
  4.  
  5. @app.route('/post', methods = ["POST"])
  6. def post():
  7.  
  8. print(request.data)
  9. return ''
  10.  
  11. app.run(host='0.0.0.0', port= 8090)
  12.  
  13. from flask import Flask
  14.  
  15. app = Flask(__name__)
  16.  
  17. @app.route('/')
  18. def index():
  19. return 'Hello world'
  20.  
  21. if __name__ == '__main__':
  22. app.run(debug=True, host='0.0.0.0')
Add Comment
Please, Sign In to add comment