Skip to content

Instantly share code, notes, and snippets.

@waynehoover
Created December 3, 2012 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waynehoover/4197435 to your computer and use it in GitHub Desktop.
Save waynehoover/4197435 to your computer and use it in GitHub Desktop.
angular.module('hyveServices', ['ngResource']).
factory('HyvePost', function($resource){
return $resource('/hyves/'+gon.current_hyve.id+'/posts/:id', {}, {
update: { method: 'PUT'},
query: {method: 'GET', isArray:true}
});
}).factory('Comment', function($resource){
return $resource('/posts/:post_id', {}, {
update: { method: 'PUT'},
query: {method: 'GET', isArray:true}
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment