We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 987ce13 commit 916459aCopy full SHA for 916459a
1 file changed
carrental-web/src/main/webapp/swagger/swagger-initializer.js
@@ -3,7 +3,7 @@ window.onload = function() {
3
4
// the following lines will be replaced by docker/configurator, when it runs in a docker-container
5
window.ui = SwaggerUIBundle({
6
- url: "http://localhost:8080/carrental-web/rest/swagger.json",
+ url: `${window.location.href.split('/swagger')[0]}/rest/swagger.json`,
7
dom_id: '#swagger-ui',
8
deepLinking: true,
9
presets: [
0 commit comments