summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/resources/ui_handlers.py
diff options
context:
space:
mode:
Diffstat (limited to 'testapi/opnfv_testapi/resources/ui_handlers.py')
-rw-r--r--testapi/opnfv_testapi/resources/ui_handlers.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/testapi/opnfv_testapi/resources/ui_handlers.py b/testapi/opnfv_testapi/resources/ui_handlers.py
new file mode 100644
index 0000000..ac8f816
--- /dev/null
+++ b/testapi/opnfv_testapi/resources/ui_handlers.py
@@ -0,0 +1,14 @@
+from opnfv_testapi.resources.handlers import GenericApiHandler
+from opnfv_testapi.tornado_swagger import settings
+
+
+class UIHandler(GenericApiHandler):
+ def initialize(self, **kwargs):
+ self.static_path = settings.docs_settings.get('static_path')
+ self.base_url = 'http://localhost:8000'
+
+ def get_template_path(self):
+ return self.static_path
+
+ def get(self):
+ self.render('testapi-ui/index.html')