mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
rename feeds
This commit is contained in:
@@ -49,6 +49,12 @@ module.factory('SubscriptionService', function($resource, $http) {
|
||||
_method : 'unsubscribe'
|
||||
}
|
||||
},
|
||||
rename : {
|
||||
method : 'GET',
|
||||
params : {
|
||||
_method : 'rename'
|
||||
}
|
||||
},
|
||||
collapse : {
|
||||
method : 'GET',
|
||||
params : {
|
||||
@@ -81,6 +87,7 @@ module.factory('SubscriptionService', function($resource, $http) {
|
||||
});
|
||||
};
|
||||
s.fetch = res.fetch;
|
||||
s.rename = res.rename;
|
||||
s.subscribe = function(sub, callback) {
|
||||
res.subscribe(sub, function(data) {
|
||||
s.init();
|
||||
|
||||
Reference in New Issue
Block a user