Commit c9c67ccb by Johannes Edmeier

Use relative urls to query flyway & liquibase endpoints

Using an absolut url in $http.get doesn't work when the server.context-path has been changed for the admin server. Like in all other places a relative url has to be used. fixes #256
parent 23d5d11f
......@@ -25,7 +25,7 @@ module.exports = function ($scope, $http, application) {
$scope.searchFilter;
$scope.refresh = function () {
$http.get('/api/applications/' + application.id + '/flyway').then(function (response) {
$http.get('api/applications/' + application.id + '/flyway').then(function (response) {
$scope.migrations = response.data;
});
};
......
......@@ -22,7 +22,7 @@ module.exports = function ($scope, $http, application) {
$scope.searchFilter = null;
$scope.refresh = function () {
$http.get('/api/applications/' + application.id + '/liquibase').then(function (response) {
$http.get('api/applications/' + application.id + '/liquibase').then(function (response) {
$scope.changeLog = response.data;
});
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment