/**
 * Created by fran lopez on 8/12/15.
 */

    /**
     * AngularJS service that will utilize the "$resource" factory
     * method. The service uses the "$resource" factory with two
     * arguments: The base URL for the resource endpoints and a
     * routing parameter assignment using the tv serie trailers's
     * document id field.
     */

    angular.module('tvSerieTrailers').factory('TVSerieTrailersByTVSerieID',
        ['$resource', function ($resource) {
            return $resource('/tvSerieTrailers/:TVSerieId/', {
                TVSerieId: '@TVSerieID'
            });
        }
    ]);