'use strict'; angular.module('appServices', ['ngResource']) .value('LastEditedEnvelope', {}) .factory('Login', function($resource) { return $resource(getApiDomain() + '/api/register', {}, {}); }) .factory('Envelopes', function($resource, ApiKey) { return $resource(getApiDomain() + '/api/envelopes', {}, { get: { method: 'GET', params: { "apiKey": ApiKey.getApiKey() } } }) }) .factory('BankAccounts', function($resource, ApiKey) { return $resource(getApiDomain() + '/api/bankAccounts', {}, { get: { method: 'GET', params: { "apiKey": ApiKey.getApiKey() } } }); }) ;