From 02de16e198f367b81b9bc2470ff0da680b04d9e5 Mon Sep 17 00:00:00 2001
From: Erik Reid <erik.reid@geant.org>
Date: Thu, 13 Dec 2018 21:22:45 +0100
Subject: [PATCH] use window.location.origin instead of hard-coded url

---
 inventory_provider/static/inventoryProvider.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/inventory_provider/static/inventoryProvider.js b/inventory_provider/static/inventoryProvider.js
index df3ec25a..b5e2d2a4 100644
--- a/inventory_provider/static/inventoryProvider.js
+++ b/inventory_provider/static/inventoryProvider.js
@@ -14,7 +14,6 @@ myApp.controller('inventoryProvider', function($scope, $http) {
 
     $http({
         method: 'GET',
-        url: 'http://localhost:7878/data/routers'
+        url: window.location.origin + "/data/routers"
     }).then(onSuccess, onError);
-console.log("HERE2");
 });
\ No newline at end of file
-- 
GitLab