summaryrefslogtreecommitdiffstats
path: root/utils/test/testapi/opnfv_testapi/resources/ui_handlers.py
blob: ac8f816a44ce08c1525fbd6527c02a58761014a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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')