fetch feed name

This commit is contained in:
Athou
2013-03-30 20:51:51 +01:00
parent d8b8f6617a
commit 5a4d11c4de
8 changed files with 75 additions and 6 deletions

View File

@@ -21,6 +21,12 @@ module.factory('SubscriptionService', [
return array;
}
var actions = {
fetch : {
method : 'GET',
params : {
_method : 'fetch'
}
},
get : {
method : 'GET',
params : {
@@ -58,6 +64,7 @@ module.factory('SubscriptionService', [
callback(data);
});
};
s.fetch = res.fetch;
s.subscribe = function(sub, callback) {
res.subscribe(sub, function(data) {
s.init();