summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/router
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2017-05-18 20:06:26 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2017-05-18 20:06:26 +0800
commitc6bda58ba44dddb9151862d75a53224e7ad03227 (patch)
tree1d8e74ee8eeb3d7b69dd350396fb009a5d3e8a0c /testapi/opnfv_testapi/router
parentd57892f46ca4864f2188d0e4fccb97d3987c10d1 (diff)
support showing user's specified contents after signin
Change-Id: Ia8897860757a2395873ff6972a508c38d7139854 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'testapi/opnfv_testapi/router')
-rw-r--r--testapi/opnfv_testapi/router/url_mappings.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/testapi/opnfv_testapi/router/url_mappings.py b/testapi/opnfv_testapi/router/url_mappings.py
index 7bd3430..d686701 100644
--- a/testapi/opnfv_testapi/router/url_mappings.py
+++ b/testapi/opnfv_testapi/router/url_mappings.py
@@ -16,7 +16,8 @@ from opnfv_testapi.resources import result_handlers
from opnfv_testapi.resources import scenario_handlers
from opnfv_testapi.resources import testcase_handlers
from opnfv_testapi.ui import root
-from opnfv_testapi.ui.auth import handlers as auth_handlers
+from opnfv_testapi.ui.auth import sign
+from opnfv_testapi.ui.auth import user
mappings = [
# GET /versions => GET API version
@@ -59,6 +60,7 @@ mappings = [
{'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),
+ (r'/api/v1/auth/signin', sign.SigninHandler),
+ (r'/api/v1/auth/signin_return', sign.SigninReturnHandler),
+ (r'/api/v1/profile', user.ProfileHandler),
]