12345678910111213141516171819202122232425262728293031323334353637 |
- angular
- .module('codexApp', [
- 'ui.router',
- 'ngSanitize',
- 'codexApp.prefs.nav',
- 'codexApp.prefs.general',
- 'codexApp.prefs.databases'
- ])
- .config(['$stateProvider', '$urlRouterProvider', '$httpProvider', function($stateProvider, $urlRouterProvider, $httpProvider) {
-
-
- $httpProvider.defaults.useXDomain = true;
-
- delete $httpProvider.defaults.headers.common['X-Requested-With'];
-
-
- $stateProvider
- .state('general', {
- url: "/",
- templateUrl: 'views/preferences/general.html',
- controller: 'GeneralPrefsCtrl'
- })
- .state('databases', {
- url: "/databases",
- templateUrl: 'views/preferences/databases.html',
- controller: 'DatabasesPrefsCtrl'
- })
- $urlRouterProvider.otherwise("/");
- }]);
|