* [pve-devel] [PATCH widget-toolkit] api-viewer: drop extra slash in api path
@ 2021-07-15 11:10 Dominik Csapak
2021-07-19 15:38 ` [pve-devel] applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2021-07-15 11:10 UTC (permalink / raw)
To: pve-devel
'endpoint' already begins with a slash, so drop it after /api2/json
Signed-off-by: Dominik Csapak <d.csapak@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-07-19 15:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-15 11:10 [pve-devel] [PATCH widget-toolkit] api-viewer: drop extra slash in api path Dominik Csapak
2021-07-19 15:38 ` [pve-devel] applied: " Thomas Lamprecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox