diff --git a/src/accounts/account.config.ts b/src/accounts/account.config.ts deleted file mode 100644 index 1efe02e..0000000 --- a/src/accounts/account.config.ts +++ /dev/null @@ -1,4 +0,0 @@ -export function AccountConfig($resourceProvider) { - // Keep trailing slashes to avoid redirect by flask. - $resourceProvider.defaults.stripTrailingSlashes = false; -}; diff --git a/src/accounts/index.ts b/src/accounts/index.ts index 823ac7b..94a3b05 100644 --- a/src/accounts/index.ts +++ b/src/accounts/index.ts @@ -27,7 +27,6 @@ var ngResource = require('angular-resource'), ngUiNotification = require('angular-ui-notification'), ngStrap = require('angular-strap'); -import { AccountConfig } from './account.config'; import { AccountBalancesFactory } from './accountBalances.factory'; import { AccountService } from './account.service'; import { AccountComponent } from './account.component'; @@ -39,8 +38,6 @@ export default angular.module('accountant.accounts', [ ngStrap, ]) - .config(AccountConfig) - .factory('AccountBalances', AccountBalancesFactory) .factory('AccountService', downgradeInjectable(AccountService)) diff --git a/src/operations/index.ts b/src/operations/index.ts index 1b3a6f1..b4fe981 100644 --- a/src/operations/index.ts +++ b/src/operations/index.ts @@ -33,7 +33,6 @@ var balanceChartModule = require('./balance-chart.component'), import accountModule from '@accountant/accounts'; var OperationFactory = require('./operation.factory'); -var OperationConfig = require('./operation.config'); var OperationController = require('./operation.controller'); export default angular.module('accountant.operations', [ @@ -46,8 +45,6 @@ export default angular.module('accountant.operations', [ categoryChartModule ]) - .config(OperationConfig) - .factory('Operation', OperationFactory) .controller('OperationController', OperationController) diff --git a/src/operations/operation.config.ts b/src/operations/operation.config.ts deleted file mode 100644 index 0617c65..0000000 --- a/src/operations/operation.config.ts +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = function($resourceProvider) { - // Keep trailing slashes to avoid redirect by flask.. - $resourceProvider.defaults.stripTrailingSlashes = false; -}; diff --git a/src/scheduler/index.ts b/src/scheduler/index.ts index 8e59bb6..a2fb9b3 100644 --- a/src/scheduler/index.ts +++ b/src/scheduler/index.ts @@ -24,7 +24,6 @@ var ngMessages = require('angular-messages'), ngUiNotification = require('angular-ui-notification'), ngStrap = require('angular-strap'); -var ScheduleConfig = require('./schedule.config'); var ScheduleController = require('./schedule.controller'); var ScheduleFactory = require('./schedule.factory'); @@ -34,8 +33,6 @@ export default angular.module('accountant.scheduler', [ ngStrap ]) - .config(ScheduleConfig) - .factory('ScheduledOperation', ScheduleFactory) .controller('SchedulerController', ScheduleController) diff --git a/src/scheduler/schedule.config.ts b/src/scheduler/schedule.config.ts deleted file mode 100644 index 0617c65..0000000 --- a/src/scheduler/schedule.config.ts +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = function($resourceProvider) { - // Keep trailing slashes to avoid redirect by flask.. - $resourceProvider.defaults.stripTrailingSlashes = false; -};