Skip to content

Instantly share code, notes, and snippets.

@ankitr
Created March 30, 2014 01:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ankitr/9866119 to your computer and use it in GitHub Desktop.
Save ankitr/9866119 to your computer and use it in GitHub Desktop.
An example app.
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