Created
November 27, 2019 13:48
-
-
Save dmi3coder/9b9d85e8d4d1a6da896c66b85cd9563c to your computer and use it in GitHub Desktop.
Example of Python's Decorators in flask
This file contains hidden or 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
app = Flask(__name__) | |
@app.route('/hello', methods=['GET']) | |
def say_hello(): | |
return 'hello' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment