aboutsummaryrefslogtreecommitdiffstats
path: root/packages/torouter-web/tui/controllers/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/torouter-web/tui/controllers/main.py')
-rw-r--r--packages/torouter-web/tui/controllers/main.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/torouter-web/tui/controllers/main.py b/packages/torouter-web/tui/controllers/main.py
new file mode 100644
index 0000000..2806467
--- /dev/null
+++ b/packages/torouter-web/tui/controllers/main.py
@@ -0,0 +1,14 @@
+import web
+import view, config
+from view import render
+
+"""
+The main page for network configuration
+"""
+class index:
+ def GET(self):
+ return render.base(render.index())
+
+ def POST(self):
+ return render.base(render.index())
+