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
No known key found for this signature in database
GPG Key ID: AA0C5A4496B7ADF5
1 changed files with 1 additions and 1 deletions

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