From 9db91e3b166f07750a045d5e24f820837f5772b4 Mon Sep 17 00:00:00 2001 From: SerenaFeng Date: Fri, 27 Oct 2017 16:28:48 +0800 Subject: divide resources into handlers and models divide resources into handlers&models put ui handlers into handlers directory put User into user_models.py Change-Id: I3d9e260097205213c3ea8d4eac08b9019e017f71 Signed-off-by: SerenaFeng --- testapi/opnfv_testapi/handlers/root_handlers.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 testapi/opnfv_testapi/handlers/root_handlers.py (limited to 'testapi/opnfv_testapi/handlers/root_handlers.py') diff --git a/testapi/opnfv_testapi/handlers/root_handlers.py b/testapi/opnfv_testapi/handlers/root_handlers.py new file mode 100644 index 0000000..92920fa --- /dev/null +++ b/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') -- cgit 1.2.3-korg