]> git.proxmox.com Git - pve-docs.git/blobdiff - api-viewer/PVEAPI.js
fix #5429: network: override device names: include Type=ether
[pve-docs.git] / api-viewer / PVEAPI.js
index ae458840126e8b912a0cf91d4dd917ffd50ed9d6..75d486da320d66c5d358fb9e1f78d9c3956da559 100644 (file)
@@ -1,10 +1,10 @@
-var clicmdhash = {
+let method2cmd = {
     GET: 'get',
     POST: 'create',
     PUT: 'set',
     DELETE: 'delete'
 };
 
-function cliusage(method, path) {
-    return `<tr><td>&nbsp;</td></td><tr><td>CLI:</td><td>pvesh ${clicmdhash[method]} ${path}</td></tr></table>`;
+function cliUsageRenderer(method, path) {
+    return `<tr><td>&nbsp;</td></td><tr><td>CLI:</td><td>pvesh ${method2cmd[method]} ${path}</td></tr></table>`;
 }