Skip to content

Commit 06d8ae7

Browse files
fgreinacherfrantuma
authored andcommitted
fix: load own spec with relative path
Without this the spec won't render when the generator is exposed on a sub path
1 parent a5bf2c4 commit 06d8ae7

File tree

1 file changed

+1
-1
lines changed
  • modules/swagger-generator/src/main/webapp

1 file changed

+1
-1
lines changed

modules/swagger-generator/src/main/webapp/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
window.onload = function() {
7474
// Build a system
7575
const ui = SwaggerUIBundle({
76-
url: "/api/swagger.json",
76+
url: "./api/swagger.json",
7777
dom_id: '#swagger-ui',
7878
presets: [
7979
SwaggerUIBundle.presets.apis,

0 commit comments

Comments
 (0)