forked from Archives/Athou_commafeed
use backend to populate data
This commit is contained in:
@@ -2,7 +2,6 @@ var module = angular.module('commafeed.services', [ 'ngResource' ]);
|
||||
|
||||
module.factory('CategoryService', [ '$resource', '$http',
|
||||
function($resource, $http) {
|
||||
|
||||
var actions = {
|
||||
'get' : {
|
||||
method : 'GET'
|
||||
@@ -10,4 +9,20 @@ module.factory('CategoryService', [ '$resource', '$http',
|
||||
}
|
||||
res = $resource('subscriptions', {}, actions);
|
||||
return res
|
||||
} ]);
|
||||
|
||||
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
|
||||
} ]);
|
||||
Reference in New Issue
Block a user