1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: relative swagger-ui definition

Relevant for those hosting wakapi on subdirectory

Note: /swagger-ui redirects to /swagger-ui/
This commit is contained in:
Steven Tang
2021-09-07 14:42:52 +10:00
parent cafe4133e4
commit 816d0c8cdc

View File

@@ -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: [