Guest User

Untitled

a guest
Oct 18th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. import web
  2.  
  3. urls = (
  4.   '/', 'index'
  5.   '/secret','secret'
  6. )
  7.  
  8. class index:
  9.     def GET(self):
  10.         return "Hello, world!"
  11.        
  12. class secret:
  13.     def GET(self):
  14.         return "Secret Area :)"
  15.  
  16. if __name__ == "__main__":
  17.     app = web.application(urls, globals())
  18.     app.run()
Add Comment
Please, Sign In to add comment