Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. from flask import Flask, request
  2.  
  3. app = Flask(__name__)
  4.  
  5. @app.route('/post/', methods=['POST'])
  6. def hello():
  7. return 'hi'
  8.  
  9. @app.route('/get/', methods=['GET'])
  10. def hello1():
  11. return 'hi'
  12.  
  13. #Running app
  14. if __name__ == '__main__':
  15. app.run(
  16. host="127.0.0.1",
  17. port=int("8080")
  18. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement