bugfix: leverage data_files to stop hacking setup.py
[releng.git] / utils / test / testapi / opnfv_testapi / ui / root.py
index 5b2c922..576cbdd 100644 (file)
@@ -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
+        return CONF.ui_static_path
 
+    @check.login
     def get(self):
         self.render('testapi-ui/index.html')