@app.route('/user/<username>') defshow_user_profile(username): # show the user profile for that user returnf'User {escape(username)}' #return 'User %s' % username @app.route('/post/<int:post_id>') defshow_post(post_id): # show the post with the given id, the id is an integer returnf'Post {post_id}'
@app.route('/path/<path:subpath>') defshow_subpath(subpath): # show the subpath after /path/ returnf'Subpath {escape(subpath)}'