api-viewer: drop extra slash in api path
'endpoint' already begins with a slash, so drop it after /api2/json Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
8b06793b3d
commit
6cc360f2b4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user