forked from Archives/Athou_commafeed
handle 'mark as read'
This commit is contained in:
@@ -6,21 +6,30 @@ module.factory('CategoryService', [ '$resource', '$http',
|
||||
'get' : {
|
||||
method : 'GET'
|
||||
}
|
||||
}
|
||||
};
|
||||
res = $resource('rest/subscriptions', {}, actions);
|
||||
return res
|
||||
return res;
|
||||
} ]);
|
||||
|
||||
module.factory('EntryService', [ '$resource', '$http',
|
||||
module.factory('EntryService', [
|
||||
'$resource',
|
||||
'$http',
|
||||
function($resource, $http) {
|
||||
var actions = {
|
||||
'getUnread' : {
|
||||
'get' : {
|
||||
method : 'GET',
|
||||
params : {
|
||||
_method : 'get'
|
||||
}
|
||||
},
|
||||
mark : {
|
||||
method : 'GET',
|
||||
params : {
|
||||
_method : 'mark'
|
||||
}
|
||||
}
|
||||
}
|
||||
res = $resource('rest/entries/:_method/:_type/:_id/:_readtype', {}, actions);
|
||||
return res
|
||||
};
|
||||
res = $resource('rest/entries/:_method/:_type/:_id/:_readtype', {},
|
||||
actions);
|
||||
return res;
|
||||
} ]);
|
||||
Reference in New Issue
Block a user