Created
March 30, 2014 01:55
-
-
Save ankitr/9866119 to your computer and use it in GitHub Desktop.
An example app.
This file contains 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
from flask import Flask | |
app = Flask(__name__) | |
@app.route('/', methods=['GET']) | |
def hello(): | |
return 'Whatever you want' | |
@app.route("/", methods=['POST']) | |
def doSomething(): | |
# Put something here | |
return "Yay" | |
if __name__ == '__main__': | |
app.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment