-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
executable file
·47 lines (44 loc) · 1.32 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//Setting up route
window.app.config(['$routeProvider',
function($routeProvider) {
$routeProvider.
when('/', {
templateUrl: 'views/home.html'
}).
//when('/devicedetails', { templateUrl: 'views/devicedetails.html' }).
when('/devicedetails/:item', {
templateUrl: 'views/devicedetails.html'
}).
when('/admindevices', {
templateUrl: 'views/admin/devices.html'
}).
when('/adminUser', {
templateUrl: 'views/admin/users.html'
}).
when('/myassets', {
templateUrl: 'views/myassets.html'
}).
when('/signout', {
templateUrl: 'views/myassets.html'
}).
when('/adminStories', {
templateUrl: 'views/admin/stories.html'
}).
otherwise({
redirectTo: '/'
});
}
]);
//Removing tomcat unspported headers
window.app.config(['$httpProvider',
function($httpProvider, Configuration) {
//delete $httpProvider.defaults.headers.common["X-Requested-With"];
}
]);
//Setting HTML5 Location Mode
window.app.config(['$locationProvider',
function($locationProvider) {
// $locationProvider.html5Mode(true);
$locationProvider.hashPrefix("!");
}
]);