public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [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:&nbsp;&nbsp;&nbsp;</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

* [pve-devel] applied: [PATCH widget-toolkit] api-viewer: drop extra slash in api path
  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 ` Thomas Lamprecht
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2021-07-19 15:38 UTC (permalink / raw)
  To: Proxmox VE development discussion, Dominik Csapak

On 15.07.21 13:10, Dominik Csapak wrote:
> '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(-)
> 
>

applied, thanks!




^ 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
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal