Fix resource configuration for trailing slashes.
This commit is contained in:
parent
cd2e20c744
commit
716dd94943
@ -1,4 +0,0 @@
|
|||||||
export function AccountConfig($resourceProvider) {
|
|
||||||
// Keep trailing slashes to avoid redirect by flask.
|
|
||||||
$resourceProvider.defaults.stripTrailingSlashes = false;
|
|
||||||
};
|
|
@ -27,7 +27,6 @@ var ngResource = require('angular-resource'),
|
|||||||
ngUiNotification = require('angular-ui-notification'),
|
ngUiNotification = require('angular-ui-notification'),
|
||||||
ngStrap = require('angular-strap');
|
ngStrap = require('angular-strap');
|
||||||
|
|
||||||
import { AccountConfig } from './account.config';
|
|
||||||
import { AccountBalancesFactory } from './accountBalances.factory';
|
import { AccountBalancesFactory } from './accountBalances.factory';
|
||||||
import { AccountService } from './account.service';
|
import { AccountService } from './account.service';
|
||||||
import { AccountComponent } from './account.component';
|
import { AccountComponent } from './account.component';
|
||||||
@ -39,8 +38,6 @@ export default angular.module('accountant.accounts', [
|
|||||||
ngStrap,
|
ngStrap,
|
||||||
])
|
])
|
||||||
|
|
||||||
.config(AccountConfig)
|
|
||||||
|
|
||||||
.factory('AccountBalances', AccountBalancesFactory)
|
.factory('AccountBalances', AccountBalancesFactory)
|
||||||
|
|
||||||
.factory('AccountService', downgradeInjectable(AccountService))
|
.factory('AccountService', downgradeInjectable(AccountService))
|
||||||
|
@ -33,7 +33,6 @@ var balanceChartModule = require('./balance-chart.component'),
|
|||||||
import accountModule from '@accountant/accounts';
|
import accountModule from '@accountant/accounts';
|
||||||
|
|
||||||
var OperationFactory = require('./operation.factory');
|
var OperationFactory = require('./operation.factory');
|
||||||
var OperationConfig = require('./operation.config');
|
|
||||||
var OperationController = require('./operation.controller');
|
var OperationController = require('./operation.controller');
|
||||||
|
|
||||||
export default angular.module('accountant.operations', [
|
export default angular.module('accountant.operations', [
|
||||||
@ -46,8 +45,6 @@ export default angular.module('accountant.operations', [
|
|||||||
categoryChartModule
|
categoryChartModule
|
||||||
])
|
])
|
||||||
|
|
||||||
.config(OperationConfig)
|
|
||||||
|
|
||||||
.factory('Operation', OperationFactory)
|
.factory('Operation', OperationFactory)
|
||||||
|
|
||||||
.controller('OperationController', OperationController)
|
.controller('OperationController', OperationController)
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
module.exports = function($resourceProvider) {
|
|
||||||
// Keep trailing slashes to avoid redirect by flask..
|
|
||||||
$resourceProvider.defaults.stripTrailingSlashes = false;
|
|
||||||
};
|
|
@ -24,7 +24,6 @@ var ngMessages = require('angular-messages'),
|
|||||||
ngUiNotification = require('angular-ui-notification'),
|
ngUiNotification = require('angular-ui-notification'),
|
||||||
ngStrap = require('angular-strap');
|
ngStrap = require('angular-strap');
|
||||||
|
|
||||||
var ScheduleConfig = require('./schedule.config');
|
|
||||||
var ScheduleController = require('./schedule.controller');
|
var ScheduleController = require('./schedule.controller');
|
||||||
var ScheduleFactory = require('./schedule.factory');
|
var ScheduleFactory = require('./schedule.factory');
|
||||||
|
|
||||||
@ -34,8 +33,6 @@ export default angular.module('accountant.scheduler', [
|
|||||||
ngStrap
|
ngStrap
|
||||||
])
|
])
|
||||||
|
|
||||||
.config(ScheduleConfig)
|
|
||||||
|
|
||||||
.factory('ScheduledOperation', ScheduleFactory)
|
.factory('ScheduledOperation', ScheduleFactory)
|
||||||
|
|
||||||
.controller('SchedulerController', ScheduleController)
|
.controller('SchedulerController', ScheduleController)
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
module.exports = function($resourceProvider) {
|
|
||||||
// Keep trailing slashes to avoid redirect by flask..
|
|
||||||
$resourceProvider.defaults.stripTrailingSlashes = false;
|
|
||||||
};
|
|
Loading…
Reference in New Issue
Block a user