forked from csmberkeley/csmberkeley.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.js
33 lines (33 loc) · 996 Bytes
/
routes.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
(function() {
angular.module('CSM')
.config(function($routeProvider) {
$routeProvider.when('/', {
templateUrl: 'templates/pages/home/index.html'
})
.when('/team', {
templateUrl: 'templates/pages/team/index.html'
})
.when('/mentors', {
templateUrl: 'templates/pages/mentors/index.html'
})
.when('/students', {
templateUrl: 'templates/pages/students/index.html'
})
.when('/partners', {
templateUrl: 'templates/pages/partners/index.html'
})
.when('/scheduler', {
redirectTo: function() {
window.location.href = 'http://csmscheduler.herokuapp.com/'
}
})
.when('/interview', {
redirectTo: function() {
window.location.href = 'http://scrutinizer.herokuapp.com/'
}
})
.otherwise({
redirectTo: '/'
});
});
})();