Amazon health check request

This commit is contained in:
Gustavo Maximiliano Cortez 2016-06-07 10:42:54 -03:00
parent 5fe96476bf
commit 70ded721bf
No known key found for this signature in database
GPG Key ID: 15EDAD8D9F2EB1AF
1 changed files with 15 additions and 0 deletions

View File

@ -27,6 +27,21 @@ angular.module('copayApp.services').factory('amazonService', function($http, $lo
credentials.AMAZON_REGION = window.amazon_region;
credentials.AMAZON_ENDPOINT = window.amazon_endpoint;
};
_healthCheckRequest();
};
var _healthCheckRequest = function() {
$http({
method: 'GET',
url: credentials.AMAZON_ENDPOINT + '/sping',
headers: {
'content-type': 'application/json'
}
}).then(function(data) {
$log.info('Amazon Health Check: SUCCESS');
}, function(data) {
$log.error('Amazon Health Check: ERROR ' + data.data.error);
});
};
var _checkLimit = function(amount, cb) {