Skip to content

Instantly share code, notes, and snippets.

@daniel-nelson
Created January 27, 2012 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save daniel-nelson/1691090 to your computer and use it in GitHub Desktop.
Save daniel-nelson/1691090 to your computer and use it in GitHub Desktop.
var pops;
pops = function($resource) {
return $resource('/pops/:id', {}, {
index: {
method: 'GET',
isArray: true
},
destroy: {
method: 'DELETE'
}
});
};
angular.service('Pops', pops, {
$inject: ['$resource']
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment