Remove /controller from the api endpoint

This commit is contained in:
Julien Duponchelle committed 2016-03-11 17:16:09 +01:00
1 parent e3580d52c3
commit 8c1560332e
107 files changed
+356 -310

No files matched your search

+1 -1
View File
@@ -126,7 +126,7 @@ class Route(object):
def register(func):
# Add the type of server to the route
if "controller" in func.__module__:
route = "/v{version}/controller{path}".format(path=path, version=api_version)
route = "/v{version}{path}".format(path=path, version=api_version)
elif "hypervisor" in func.__module__:
route = "/v{version}/hypervisor{path}".format(path=path, version=api_version)
else: