addapt switch to suscribe/unsuscribe notifications

This commit is contained in:
Gabriel Bazán 2015-12-23 15:33:56 -03:00
commit d02afef341
3 changed files with 64 additions and 31 deletions

View file

@ -7,6 +7,12 @@
return $http.post('http://192.168.1.120:8000/subscribe', opts);
}
root.unsubscribe = function(token) {
return $http.post('http://192.168.1.120:8000/unsubscribe', {
token: token
});
}
return root;
});