From 816d0c8cdc7261741e694e4a4cd193b881e84f21 Mon Sep 17 00:00:00 2001 From: Steven Tang Date: Tue, 7 Sep 2021 14:42:52 +1000 Subject: [PATCH] fix: relative swagger-ui definition Relevant for those hosting wakapi on subdirectory Note: /swagger-ui redirects to /swagger-ui/ --- static/swagger-ui/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/swagger-ui/index.html b/static/swagger-ui/index.html index 37483ee..05c18ce 100644 --- a/static/swagger-ui/index.html +++ b/static/swagger-ui/index.html @@ -41,7 +41,7 @@ window.onload = function() { // Begin Swagger UI call region const ui = SwaggerUIBundle({ - url: "/docs/swagger.json", + url: "../docs/swagger.json", dom_id: '#swagger-ui', deepLinking: true, presets: [