Created
January 15, 2012 15:54
-
-
Save longfin/1616249 to your computer and use it in GitHub Desktop.
Flask Routes
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
# 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