Merge config functions.

This commit is contained in:
Alexis Lahouze 2017-06-11 08:07:48 +02:00
parent 86911c106d
commit feef3d825c

View File

@ -89,12 +89,10 @@ var loginModule = angular.module('accountant.login', [
return sessionInjector;
})
.config(function($httpProvider) {
.config(function($httpProvider, $storageProvider) {
// Define interceptors.
$httpProvider.interceptors.push('sessionInjector');
})
.config(function($storageProvider) {
// Configure storage
// Set global prefix for stored keys
$storageProvider.setPrefix('accountant');