Skip to content

Instantly share code, notes, and snippets.

/gist:34bba4512fe16643e7c0 Secret
Created Dec 7, 2014

Embed
What would you like to do?
/*
* Services
*/
'use strict';
var routingServices;
routingServices = angular.module('routingServices', ['ngResource']);
routingServices.factory('Person', [
'$resource', function($resource) {
return $resource('http://localhost:8000/api/persons/:personId', null, {
query: { METHOD: 'GET', params: {}, isArray: true },
remove: { METHOD: 'DELETE', params: {} },
update: { method: 'PUT', params: {} }
});
}
]);
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.