summaryrefslogtreecommitdiffstats
path: root/utils/test/testapi/opnfv_testapi/handlers/root_handlers.py
diff options
context:
space:
mode:
authorSerena Feng <feng.xiaowei@zte.com.cn>2017-10-30 12:28:31 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-10-30 12:28:31 +0000
commit0e92805f1bfe597334e2a2f4414e460a8e811239 (patch)
treeef100d680932b169a73d6251811d459e8f9515b2 /utils/test/testapi/opnfv_testapi/handlers/root_handlers.py
parent0709a0bc668df263465a97adf0bf4e6ba7aa8b4c (diff)
parenta82ee29bc7349bc2f0ed54cfc0ac83e7607cb1cc (diff)
Merge "divide resources into handlers and models"
Diffstat (limited to 'utils/test/testapi/opnfv_testapi/handlers/root_handlers.py')
-rw-r--r--utils/test/testapi/opnfv_testapi/handlers/root_handlers.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/test/testapi/opnfv_testapi/handlers/root_handlers.py b/utils/test/testapi/opnfv_testapi/handlers/root_handlers.py
new file mode 100644
index 000000000..92920fa85
--- /dev/null
+++ b/utils/test/testapi/opnfv_testapi/handlers/root_handlers.py
@@ -0,0 +1,10 @@
+from opnfv_testapi.common.config import CONF
+from opnfv_testapi.handlers import base_handlers
+
+
+class RootHandler(base_handlers.GenericApiHandler):
+ def get_template_path(self):
+ return CONF.ui_static_path
+
+ def get(self):
+ self.render('testapi-ui/index.html')