| /* | |
| * 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