mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 07:11:13 +02:00
Remove /controller from the api endpoint
This commit is contained in:
107 files changed
+356
-310
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user