ac8f816a44ce08c1525fbd6527c02a58761014a5
[releng.git] / utils / test / testapi / opnfv_testapi / resources / ui_handlers.py
1 from opnfv_testapi.resources.handlers import GenericApiHandler
2 from opnfv_testapi.tornado_swagger import settings
3
4
5 class UIHandler(GenericApiHandler):
6     def initialize(self, **kwargs):
7         self.static_path = settings.docs_settings.get('static_path')
8         self.base_url = 'http://localhost:8000'
9
10     def get_template_path(self):
11         return self.static_path
12
13     def get(self):
14         self.render('testapi-ui/index.html')