summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/ui/root.py
diff options
context:
space:
mode:
Diffstat (limited to 'testapi/opnfv_testapi/ui/root.py')
-rw-r--r--testapi/opnfv_testapi/ui/root.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/testapi/opnfv_testapi/ui/root.py b/testapi/opnfv_testapi/ui/root.py
index 5b2c922..069ad5e 100644
--- a/testapi/opnfv_testapi/ui/root.py
+++ b/testapi/opnfv_testapi/ui/root.py
@@ -1,10 +1,12 @@
-from opnfv_testapi.resources.handlers import GenericApiHandler
+from opnfv_testapi.common import check
from opnfv_testapi.common.config import CONF
+from opnfv_testapi.resources import handlers
-class RootHandler(GenericApiHandler):
+class RootHandler(handlers.GenericApiHandler):
def get_template_path(self):
return CONF.static_path
+ @check.login
def get(self):
self.render('testapi-ui/index.html')