summaryrefslogtreecommitdiff
path: root/index.py
diff options
context:
space:
mode:
Diffstat (limited to 'index.py')
-rwxr-xr-xindex.py26
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()