From 0b8b86ad0b974c3a6f05db9b87ce23c8ab613183 Mon Sep 17 00:00:00 2001 From: Dan Caseley Date: Mon, 18 Apr 2022 22:06:22 +0100 Subject: [PATCH] fixes #99: Don't hard-code OpenAPI yaml link to localhost --- changelog.html | 1 + src/web/docs/index.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.html b/changelog.html index b11c19465..9e33b6fbc 100644 --- a/changelog.html +++ b/changelog.html @@ -46,6 +46,7 @@

1.8.1 ???

diff --git a/src/web/docs/index.html b/src/web/docs/index.html index fb2ab3741..9806efc87 100644 --- a/src/web/docs/index.html +++ b/src/web/docs/index.html @@ -41,7 +41,7 @@ window.onload = function() { // Begin Swagger UI call region const ui = SwaggerUIBundle({ - url: "http://localhost:9090/plugins/restapi/v1/openapi.yaml", + url: window.location.origin + "/plugins/restapi/v1/openapi.yaml", dom_id: '#swagger-ui', deepLinking: true, presets: [