[pve-devel] [PATCH widget-toolkit] api-viewer: drop extra slash in api path
Dominik Csapak
d.csapak at proxmox.com
Thu Jul 15 13:10:34 CEST 2021
'endpoint' already begins with a slash, so drop it after /api2/json
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
src/api-viewer/APIViewer.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/api-viewer/APIViewer.js b/src/api-viewer/APIViewer.js
index 61a1600..8f3759e 100644
--- a/src/api-viewer/APIViewer.js
+++ b/src/api-viewer/APIViewer.js
@@ -160,7 +160,7 @@ Ext.onReady(function() {
if (info) {
let endpoint = real_path(data.path);
let usage = `<table><tr><td>HTTP: </td><td>`;
- usage += `${method} /api2/json/${endpoint}</td></tr>`;
+ usage += `${method} /api2/json${endpoint}</td></tr>`;
if (typeof cliUsageRenderer === 'function') {
usage += cliUsageRenderer(method, endpoint); // eslint-disable-line no-undef
--
2.30.2
More information about the pve-devel
mailing list