mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Rebuild link sample
This commit is contained in:
125 files changed
+347
-296
No files matched your search
@@ -135,5 +135,8 @@ class Query:
|
||||
|
||||
def _example_file_path(self, method, path):
|
||||
path = re.sub('[^a-z0-9]', '', path)
|
||||
prefix = self._prefix.replace('/', '')
|
||||
return "docs/api/examples/{}_{}_{}.txt".format(prefix, method.lower(), path)
|
||||
if len(self._prefix) > 0:
|
||||
prefix = self._prefix.replace('/', '')
|
||||
return "docs/api/examples/{}_{}_{}.txt".format(prefix, method.lower(), path)
|
||||
else:
|
||||
return "docs/api/examples/controller_{}_{}.txt".format(method.lower(), path)
|
||||
Reference in new issue
Block a user