mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-12 20:38:23 +00:00
Fix doc generation
This commit is contained in:
@ -92,9 +92,10 @@ class Route(object):
|
||||
def register(func):
|
||||
route = cls._path
|
||||
|
||||
handler = func.__module__.replace("_handler", "").replace("gns3server.handlers.", "")
|
||||
handler = func.__module__.replace("_handler", "").replace("gns3server.handlers.api.", "")
|
||||
cls._documentation.setdefault(handler, {})
|
||||
cls._documentation[handler].setdefault(route, {"methods": []})
|
||||
cls._documentation[handler].setdefault(route, {"api_version": api_version,
|
||||
"methods": []})
|
||||
|
||||
cls._documentation[handler][route]["methods"].append({
|
||||
"method": method,
|
||||
|
Reference in New Issue
Block a user