Files
commafeed/src/main/webapp/js/services.js

28 lines
662 B
JavaScript
Raw Normal View History

2013-03-22 09:29:30 +01:00
var module = angular.module('commafeed.services', [ 'ngResource' ]);
module.factory('CategoryService', [ '$resource', '$http',
function($resource, $http) {
var actions = {
'get' : {
method : 'GET'
}
}
res = $resource('subscriptions', {}, actions);
return res
2013-03-22 20:51:22 +01:00
} ]);
module.factory('EntryService', [ '$resource', '$http',
function($resource, $http) {
var actions = {
'getUnread' : {
method : 'GET',
params : {
_type : 'category',
_id : '1',
_readtype : 'unread',
}
}
}
res = $resource('entries/:_type/:_id/:_readtype', {}, actions);
return res
2013-03-22 09:29:30 +01:00
} ]);