Source: services/Acervo.js

    /**
     * @ngdoc service
     * @name Acervo
     * @module s4c.services.Acervo
     * 
     * @description  Componente para acesso a api do backend e/ou comunicação entre controllers
     * 
     *
     */

'use strict';

(function () {
   /**	
	* @method Acervo
	* @param {*} $resource
	* @param {*} API_ENDPOINT
	*/
    function Acervo($resource, API_ENDPOINT) {
        return $resource(API_ENDPOINT + 'acervos/:id', { id: '@id' }, {
            save: {
                method: 'PUT'
            },
            delete: {
                method: 'DELETE'
            }
        });
    }

    angular.module('s4c.services.Acervo', [])
        .factory('Acervo', Acervo);

    Acervo.$inject = ['$resource', 'API_ENDPOINT'];
}());