handle 'mark as read'

This commit is contained in:
Athou
2013-03-23 17:17:27 +01:00
parent 4df1e7f722
commit 84e4751e07
8 changed files with 90 additions and 47 deletions

View File

@@ -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;
} ]);