Skip to content
Snippets Groups Projects
Commit 02de16e1 authored by Erik Reid's avatar Erik Reid
Browse files

use window.location.origin instead of hard-coded url

parent 8890eaae
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment