Fix problem with Surveil endpoint

Change-Id: I4d8625ec1855594f7e4e3dab2abc3f6f3108a676
This commit is contained in:
Vincent Fournier 2015-06-19 09:21:58 -04:00
parent 7b30a1ff45
commit 4f1c0bed84
3 changed files with 8 additions and 8 deletions

View File

@ -58,7 +58,7 @@ angular.module('bansho.authentication', [])
authService.login = function (credentials) {
return $http
.post('/surveil/v2/auth/tokens/', credentials)
.post('surveil/v2/auth/tokens/', credentials)
.success(function (data) {
$rootScope.isAuthenticated = true;

View File

@ -26,7 +26,7 @@ angular.module('bansho.surveil')
}
return $http({
url: '/surveil/v2/actions/acknowledge/',
url: 'surveil/v2/actions/acknowledge/',
method: 'POST',
data: data
});
@ -39,7 +39,7 @@ angular.module('bansho.surveil')
}
return $http({
url: '/surveil/v2/actions/downtime/',
url: 'surveil/v2/actions/downtime/',
method: 'POST',
data: attrs
});
@ -53,7 +53,7 @@ angular.module('bansho.surveil')
}
return $http({
url: '/surveil/v2/actions/recheck/',
url: 'surveil/v2/actions/recheck/',
method: 'POST',
data: attrs
});

View File

@ -35,7 +35,7 @@ angular.module('bansho.surveil')
query.filters = JSON.stringify(filters);
return $http({
url: '/surveil/v2/status/' + apiName + '/',
url: 'surveil/v2/status/' + apiName + '/',
method: 'POST',
data: query,
transformResponse: appendTransform($http.defaults.transformResponse, transformations),
@ -45,7 +45,7 @@ angular.module('bansho.surveil')
};
var getMetric = function (host, service, metric) {
var url = '/surveil/v2/status/hosts/' + host,
var url = 'surveil/v2/status/hosts/' + host,
responsePromise = $q.defer();
if (service !== undefined) {
@ -201,8 +201,8 @@ angular.module('bansho.surveil')
"host": "hosts",
"service": "services"
},
liveUrl = '/surveil/v2/status/' + endpoints[objectType] + '/' + objectIdentifier.host_name + '/',
configUrl = '/surveil/v2/config/' + endpoints[objectType] + '/' + objectIdentifier.host_name + '/',
liveUrl = 'surveil/v2/status/' + endpoints[objectType] + '/' + objectIdentifier.host_name + '/',
configUrl = 'surveil/v2/config/' + endpoints[objectType] + '/' + objectIdentifier.host_name + '/',
responsePromise = $q.defer();
$http.get(liveUrl).success(function (liveData) {