diff options
author | kong wei <kong.wei2@zte.com.cn> | 2017-03-13 01:40:25 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-03-13 01:40:25 +0000 |
commit | 872bef90d91089812110e31927354a5e9e27af4c (patch) | |
tree | 9998289a4a4fba4052d17879c65ca961cca3fe2d /api/escalator/api/v1/router.py | |
parent | 70cbd8351e09634e45c9bcfaa48a2672c43ae240 (diff) | |
parent | 3e90898f667afa508137e7be885daa62fbdb86d9 (diff) |
Merge "Jira ESCALATOR-41:get cluster list from installer"
Diffstat (limited to 'api/escalator/api/v1/router.py')
-rw-r--r-- | api/escalator/api/v1/router.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/api/escalator/api/v1/router.py b/api/escalator/api/v1/router.py index e1709ca..5942cb1 100644 --- a/api/escalator/api/v1/router.py +++ b/api/escalator/api/v1/router.py @@ -14,6 +14,7 @@ # under the License. from escalator.common import wsgi from escalator.api.v1 import versions +from escalator.api.v1 import clusters class API(wsgi.Router): @@ -24,6 +25,12 @@ class API(wsgi.Router): wsgi.Resource(wsgi.RejectMethodController()) versions_resource = versions.create_resource() + clusters_resource = clusters.create_resource() + + mapper.connect("/clusters", + controller=clusters_resource, + action='detail', + conditions={'method': ['GET']}) mapper.connect("/versions", controller=versions_resource, |