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
No known key found for this signature in database
GPG Key ID: AA0C5A4496B7ADF5

View File

@ -41,7 +41,7 @@
window.onload = function() { window.onload = function() {
// Begin Swagger UI call region // Begin Swagger UI call region
const ui = SwaggerUIBundle({ const ui = SwaggerUIBundle({
url: "/docs/swagger.json", url: "../docs/swagger.json",
dom_id: '#swagger-ui', dom_id: '#swagger-ui',
deepLinking: true, deepLinking: true,
presets: [ presets: [