Created
January 27, 2012 21:45
-
-
Save daniel-nelson/1691090 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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