use backend to populate data

This commit is contained in:
Athou
2013-03-22 20:51:22 +01:00
parent c6ec3c9517
commit f3ff02b476
14 changed files with 239 additions and 126 deletions

View File

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