'use strict';

/**
 * @ngdoc service
 * @name barteguidenMarkedsWebApp.eventService
 * @description
 * # eventService
 * Factory in the barteguidenMarkedsWebApp.
 */
angular.module('barteguidenMarkedsWebApp.services')
  .factory('Event', function ($resource) {
    return $resource('http://barteguiden.no/v2/events/:id', { id: '@_id' }, {
      update: {
        method: 'PUT'
      },
      query: {
        method: 'GET',
        isArray: false
      }
    });
  });



'use strict';

/**
 * @ngdoc service
 * @name barteguidenMarkedsWebApp.eventService
 * @description
 * # eventService
 * Factory in the barteguidenMarkedsWebApp.
 */
angular.module('barteguidenMarkedsWebApp.services')
  .factory('Event', function ($resource) {
    return $resource('http://localhost:4004/api/events/:id', { id: '@_id' }, {
      update: {
        method: 'PUT'
      },
      query: {
        method: 'GET',
        isArray: true
      }
    });
  });



Update the EventService to use the local server. The event response is now an array
Update the EventService to use the local server. The event response is now an array
