Skip to content

Commit d18d848

Browse files
committed
added relative file logic
1 parent ba8e992 commit d18d848

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
@@ -27,7 +27,7 @@
2727
if (url && url.length > 1) {
2828
url = decodeURIComponent(url[1]);
2929
} else {
30-
url = "https://generator.swagger.io/api/swagger.json";
30+
url = window.location.protocol + '//' + window.location.host + '/api/swagger.json';
3131
}
3232
window.swaggerUi = new SwaggerUi({
3333
url: url,

0 commit comments

Comments
 (0)