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.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/torouter-web/runui.py b/packages/torouter-web/runui.py
index 5f27e4f..9b33d7a 100644
--- a/packages/torouter-web/runui.py
+++ b/packages/torouter-web/runui.py
@@ -6,8 +6,10 @@ import web
import config
import tui.controllers
+from tui.utils import session
from view import render
+
urls = (
'/', 'tui.controllers.main.index',
# '/config/(tor|router)', 'tui.controllers.main.config',
@@ -24,6 +26,7 @@ urls = (
if __name__ == "__main__":
app = web.application(urls, globals())
+ session.add_session_to_app(app)
app.internalerror = web.debugerror
app.run()