'use strict';

/* Services */
var SERVER_URL = 'http://localhost:8081';

angular.module('myApp.services', ['ngResource']).factory('Items', function ($resource) {
    return $resource('http://localhost:8081/items', {}, {
        query: {method: 'GET', isArray: true}
    });
}).factory('Import', function ($resource) {
    return $resource(SERVER_URL + '/import/steam', {}, {
        query: {method: 'GET', isArray: true}
  });
});
'use strict';

/* Services */
var SERVER_URL = 'http://localhost:8081';

angular.module('myApp.services', ['ngResource'])
    .factory('Items', function ($resource) {
      return $resource(SERVER_URL + '/items', {}, {
        query: {method: 'GET', isArray: true}
      });
    })
    .factory('Import', function ($resource) {
      return $resource(SERVER_URL + '/import/steam', {}, {
        query: {method: 'GET', isArray: true}
      });
    });
Use server constant in Items-service
Use server constant in Items-service
