Switched from $http to $resource.