'use strict'; angular.module('ffhb', [ 'ngTable', 'ngResource', 'angularLocalStorage', 'ui.router', 'ui.bootstrap', 'ui-leaflet', 'angularMoment', 'Authentication', 'angular-web-notification', 'config' ]) .config(['$urlRouterProvider',function ($urlRouterProvider){ //,$httpProvider) { $urlRouterProvider.otherwise('/nodes/sort'); //$locationProvider.html5Mode(true).hashPrefix('!'); //$httpProvider.defaults.withCredentials = true; }]).run(function(amMoment,$cookieStore,$rootScope,$http,config) { amMoment.changeLocale('de'); $rootScope.globals = $cookieStore.get('globals') || {}; $rootScope.autorefresh = config.refresh; if ($rootScope.globals.currentUser) { $http.defaults.headers.common['Authorization'] = 'Basic ' + $rootScope.globals.currentUser.authdata; // jshint ignore:line } });