Skip to content

Commit

Permalink
Fix link to config service
Browse files Browse the repository at this point in the history
In a reverse proxy environment, it was trying to access to
/api/config when evebox is served under /evebox/.
  • Loading branch information
regit committed Apr 22, 2016
1 parent 20c8f31 commit 17a936f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ function run($rootScope) {
angular.element(document).ready(function () {
var initInjector = angular.injector(["ng"]);
var $http = initInjector.get("$http");
$http.get("/api/config").then(response => {
$http.get(document.location + "api/config").then(response => {
app.constant("rawConfig", response.data);
angular.bootstrap(document, ["app"]);
});
});
});

0 comments on commit 17a936f

Please sign in to comment.