Skip to content

Instantly share code, notes, and snippets.

@longfin
Created January 15, 2012 15:54
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 longfin/1616249 to your computer and use it in GitHub Desktop.
Save longfin/1616249 to your computer and use it in GitHub Desktop.
Flask Routes
# http://flask.pocoo.org/docs/api/#url-route-registrations
@app.route('/')
def index():
pass
@app.route('/<username>')
def show_user(username):
pass
@app.route('/post/<int:post_id>')
def show_post(post_id):
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment