2015-01-30 11:58:36 +01:00
|
|
|
angular.module('OpenSlidesApp', [
|
2015-02-08 14:57:02 +01:00
|
|
|
'ui.router',
|
2015-01-30 11:58:36 +01:00
|
|
|
'angular-data.DS',
|
2015-02-08 14:57:02 +01:00
|
|
|
'OpenSlidesApp.core',
|
2015-01-30 11:58:36 +01:00
|
|
|
'OpenSlidesApp.agenda',
|
2015-02-08 14:57:02 +01:00
|
|
|
'OpenSlidesApp.assignments',
|
|
|
|
'OpenSlidesApp.users',
|
2015-01-30 11:58:36 +01:00
|
|
|
])
|
|
|
|
|
2015-02-08 14:57:02 +01:00
|
|
|
.config(function($urlRouterProvider, $locationProvider) {
|
|
|
|
// define fallback url and html5Mode
|
|
|
|
$urlRouterProvider.otherwise('/');
|
2015-01-30 11:58:36 +01:00
|
|
|
$locationProvider.html5Mode(true);
|
|
|
|
})
|
|
|
|
|
2015-02-08 14:57:02 +01:00
|
|
|
.config(function($httpProvider) {
|
|
|
|
// Combine the django csrf system with the angular csrf system
|
|
|
|
$httpProvider.defaults.xsrfCookieName = 'csrftoken';
|
|
|
|
$httpProvider.defaults.xsrfHeaderName = 'X-CSRFToken';
|
2015-01-30 11:58:36 +01:00
|
|
|
});
|