Wallet/src/js/services/pushNotificationsService.js

18 lines
426 B
JavaScript
Raw Normal View History

2015-12-23 12:29:46 -03:00
'use strict';
angular.module('copayApp.services')
.factory('pushNotificationsService', function($http) {
var root = {};
root.subscribe = function(opts) {
return $http.post('http://192.168.1.126:8000/subscribe', opts);
2015-12-23 12:29:46 -03:00
}
root.unsubscribe = function(token) {
return $http.post('http://192.168.1.126:8000/unsubscribe', {
token: token
});
}
2015-12-23 12:29:46 -03:00
return root;
});