diff options
Diffstat (limited to '')
-rwxr-xr-x | index.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/index.py b/index.py new file mode 100755 index 0000000..b91418d --- /dev/null +++ b/index.py @@ -0,0 +1,26 @@ +#!/usr/bin/python + +import web +import controller + +# +# URL Mappings +# +urls = ( + "/r/(.*)", controller.Redirect, + "/(.*)", controller.Page + ) + +# +# The App +# +app = web.application(urls, globals()) +app.notfound = controller.FourOhFour + +# debug for the moment +web.config.debug = True + +# +# And go! +if __name__ == "__main__": + app.run() |