aboutsummaryrefslogtreecommitdiffstats
path: root/packages/torouter-web/runui.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/torouter-web/runui.py')
-rw-r--r--packages/torouter-web/runui.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/packages/torouter-web/runui.py b/packages/torouter-web/runui.py
new file mode 100644
index 0000000..5f27e4f
--- /dev/null
+++ b/packages/torouter-web/runui.py
@@ -0,0 +1,29 @@
+# tui - Tor web UI
+# by Arturo Filasto' <hellais@torproject.org>
+#
+
+import web
+import config
+import tui.controllers
+
+from view import render
+
+urls = (
+ '/', 'tui.controllers.main.index',
+# '/config/(tor|router)', 'tui.controllers.main.config',
+ '/network', 'tui.controllers.network.main',
+ '/network/firewall', 'tui.controllers.network.firewall',
+ '/network/wireless', 'tui.controllers.network.wireless',
+ '/network/wired', 'tui.controllers.network.wired',
+ '/network/status', 'tui.controllers.network.status',
+ '/tor', 'tui.controllers.tor.status',
+ '/tor/config', 'tui.controllers.tor.config'
+ )
+# '/wizard/([0-9a-f]{1,2})?', 'tui.controllers.wizard.step',
+# '/status', 'tui.controllers.status')
+
+if __name__ == "__main__":
+ app = web.application(urls, globals())
+ app.internalerror = web.debugerror
+ app.run()
+