From 62134cd7fd72c9c38dd484d79456d2c731aa2c45 Mon Sep 17 00:00:00 2001 From: Nicolas Arenas Date: Tue, 1 Oct 2024 09:28:16 +0200 Subject: [PATCH] Update provision and swagger init file --- public/swagger-initializer.js | 2 +- tests/API-dhcp/Vagrantfile | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/public/swagger-initializer.js b/public/swagger-initializer.js index 837ff5f..02657a7 100644 --- a/public/swagger-initializer.js +++ b/public/swagger-initializer.js @@ -3,7 +3,7 @@ window.onload = function() { // the following lines will be replaced by docker/configurator, when it runs in a docker-container window.ui = SwaggerUIBundle({ - url: "http://192.168.0.27:8080/swagger.json", + url: "http://{{SERVER_NAME}}/swagger.json", dom_id: '#swagger-ui', deepLinking: true, presets: [ diff --git a/tests/API-dhcp/Vagrantfile b/tests/API-dhcp/Vagrantfile index d88e731..dd594b8 100644 --- a/tests/API-dhcp/Vagrantfile +++ b/tests/API-dhcp/Vagrantfile @@ -3,10 +3,15 @@ # in the wiki: https://github.com/josenk/vagrant-vmware-esxi/wiki $script = <