From 716dd9494349148b9d7edd8f2f7416ecbe3c5bbc Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sat, 15 Jul 2017 08:17:22 +0200 Subject: [PATCH] Fix resource configuration for trailing slashes. --- src/accounts/account.config.ts | 4 ---- src/accounts/index.ts | 3 --- src/operations/index.ts | 3 --- src/operations/operation.config.ts | 4 ---- src/scheduler/index.ts | 3 --- src/scheduler/schedule.config.ts | 4 ---- 6 files changed, 21 deletions(-) delete mode 100644 src/accounts/account.config.ts delete mode 100644 src/operations/operation.config.ts delete mode 100644 src/scheduler/schedule.config.ts 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; -};