aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/webui/handlers')
-rw-r--r--fg21sim/webui/handlers/index.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/fg21sim/webui/handlers/index.py b/fg21sim/webui/handlers/index.py
new file mode 100644
index 0000000..e95c310
--- /dev/null
+++ b/fg21sim/webui/handlers/index.py
@@ -0,0 +1,19 @@
+# Copyright (c) 2016 Weitian LI <liweitianux@live.com>
+# MIT license
+
+"""
+Login handler
+"""
+
+import tornado.web
+
+from .base import BaseRequestHandler
+
+
+class IndexHandler(BaseRequestHandler):
+ """
+ Index page handler of the Web UI.
+ """
+ @tornado.web.authenticated
+ def get(self):
+ self.render("index.html")