Advertisement
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 hello():
- return 'hi'
- @app.route('/get/', methods=['GET'])
- def hello1():
- return 'hi'
- #Running app
- if __name__ == '__main__':
- app.run(
- host="127.0.0.1",
- port=int("8080")
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement