ffffng/app/scripts/services/monitoringService.js
2016-05-23 23:03:57 +02:00

20 lines
503 B
JavaScript

'use strict';
angular.module('ffffng')
.service('MonitoringService', function ($http, $q) {
return {
'confirm': function (token) {
if (!token) {
return $q.reject({});
}
return $http.put('/api/monitoring/confirm/' + token);
},
'disable': function (token) {
if (!token) {
return $q.reject({});
}
return $http.put('/api/monitoring/disable/' + token);
}
};
});