Skip to content

Commit 916459a

Browse files
committed
fix: swagger
1 parent 987ce13 commit 916459a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

carrental-web/src/main/webapp/swagger/swagger-initializer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ window.onload = function() {
33

44
// the following lines will be replaced by docker/configurator, when it runs in a docker-container
55
window.ui = SwaggerUIBundle({
6-
url: "http://localhost:8080/carrental-web/rest/swagger.json",
6+
url: `${window.location.href.split('/swagger')[0]}/rest/swagger.json`,
77
dom_id: '#swagger-ui',
88
deepLinking: true,
99
presets: [

0 commit comments

Comments
 (0)