summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/router/url_mappings.py
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2017-05-17 18:31:26 +0800
committerSerena Feng <feng.xiaowei@zte.com.cn>2017-05-18 01:01:05 +0000
commitd57892f46ca4864f2188d0e4fccb97d3987c10d1 (patch)
treecaafd5d32898992591f9eb68a5e3d078ddd167c0 /testapi/opnfv_testapi/router/url_mappings.py
parentbd392ea5ac1797d97348a8f98f254d0fff1241aa (diff)
add signin web to TestAPI
Change-Id: I4d39a8561c8ebd3238a495e5799fd43fb1a508b9 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'testapi/opnfv_testapi/router/url_mappings.py')
-rw-r--r--testapi/opnfv_testapi/router/url_mappings.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/testapi/opnfv_testapi/router/url_mappings.py b/testapi/opnfv_testapi/router/url_mappings.py
index ebe5994..7bd3430 100644
--- a/testapi/opnfv_testapi/router/url_mappings.py
+++ b/testapi/opnfv_testapi/router/url_mappings.py
@@ -15,11 +15,11 @@ from opnfv_testapi.resources import project_handlers
from opnfv_testapi.resources import result_handlers
from opnfv_testapi.resources import scenario_handlers
from opnfv_testapi.resources import testcase_handlers
-import opnfv_testapi.resources.ui_handlers
+from opnfv_testapi.ui import root
+from opnfv_testapi.ui.auth import handlers as auth_handlers
mappings = [
# GET /versions => GET API version
- (r'/', opnfv_testapi.resources.ui_handlers.UIHandler),
(r"/versions", handlers.VersionHandler),
# few examples:
@@ -54,7 +54,11 @@ mappings = [
(r"/api/v1/scenarios/([^/]+)", scenario_handlers.ScenarioGURHandler),
# static path
- (r'/(.*\.(css|png|gif|js|html|json))',
+ (r'/(.*\.(css|png|gif|js|html|json|map))',
tornado.web.StaticFileHandler,
{'path': config.Config().static_path}),
+
+ (r'/', root.RootHandler),
+ (r'/api/v1/auth/signin', auth_handlers.SigninHandler),
+ (r'/api/v1/auth/signin_return', auth_handlers.SigninReturnHandler),
]