blob: c1bc8f5d075b785c57d3a2dd8e6222828e9ccbce [file] [log] [blame]
(function() {
'use strict';
angular.module('{{ngModule}}')
{{#each resources}}
/**
* @ngdoc service
* @name {{../ngModule}}.{{name}}
* @description Angular resource to fetch {{param.href}}
**/
.service('{{name}}', function($resource){
return $resource('{{param.href}}'{{#if param.name}}, { {{param.name}}: '@id' }, {
update: { method: 'PUT' }
}{{/if}});
})
{{/each}}
})();