Merge "Fix v1 API."
This commit is contained in:
commit
0cd97ed559
@ -18,6 +18,7 @@ from pecan import rest
|
||||
from wsme import types as wtypes
|
||||
|
||||
from cyborg.api.controllers import base
|
||||
from cyborg.api.controllers import v1
|
||||
from cyborg.api.controllers import v2
|
||||
from cyborg.api import expose
|
||||
|
||||
@ -51,6 +52,7 @@ class RootController(rest.RestController):
|
||||
"""The default API version"""
|
||||
|
||||
v2 = v2.Controller()
|
||||
v1 = v1.Controller()
|
||||
|
||||
@expose.expose(Root)
|
||||
def get(self):
|
||||
|
@ -135,6 +135,13 @@ function create_cyborg_accounts {
|
||||
"$CYBORG_API_URL/v2" \
|
||||
"$CYBORG_API_URL/v2" \
|
||||
"$CYBORG_API_URL/v2"
|
||||
# NOTE (Sundar): If you need v1 API, enable the section below.
|
||||
# get_or_create_service "cyborg_legacy" "accelerator_legacy" "Cyborg Legacy"
|
||||
# get_or_create_endpoint "cyborg_legacy" \
|
||||
# "$REGION_NAME" \
|
||||
# "$CYBORG_API_URL/v1" \
|
||||
# "$CYBORG_API_URL/v1" \
|
||||
# "$CYBORG_API_URL/v1"
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user