Skip to content

srikantpatel/patel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

@app.route('/') def index(): return 'Index Page'

@app.route('/hello') def hello(): return 'Hello, World'

from markupsafe import escape

@app.route('/user/') def show_user_profile(username): # show the user profile for that user return 'User %s' % escape(username)

@app.route('/post/int:post_id') def show_post(post_id): # show the post with the given id, the id is an integer return 'Post %d' % post_id

@app.route('/path/path:subpath') def show_subpath(subpath): # show the subpath after /path/ return 'Subpath %s' % escape(subpath) #fdkhgkdfhgkjhgkf

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors