$resource instead $http