Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
notes.factory('Notes', function($resource) {
return $resource('/notes/:id.json', {id: '@id'});
});
notes.factory('UserNotes', function($resource) {
return $resource('/user/:user_id/notes/:note_id.json', {user_id: '@user_id', note_id: '@note_id'});
});
UserNote.query({user_id: 3})
UserNote.get({user_id: 3, note_id: 1})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.