// Stories service used to communicate Stories REST endpoints
(function () {
  'use strict';

  angular
    .module('stories')
    .factory('StoriesService', StoriesService);

  StoriesService.$inject = ['$resource'];

  function StoriesService($resource) {
    return $resource('api/stories/:storyId', {
      storyId: '@_id'
    }, {
      update: {
        method: 'PUT'
      }
    });
  }
}());
