-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.routes.js
69 lines (66 loc) · 2.68 KB
/
app.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
(function () {
'use strict';
angular.module('swiftAlert')
.config(['$stateProvider', '$locationProvider', '$urlRouterProvider', function($stateProvider, $locationProvider, $urlRouterProvider) {
$stateProvider
.state('login', {
url: '/login',
controller: 'loginController',
controllerAs: 'si',
templateUrl: 'components/login/login.html'
})
.state('dash', {
url: '/',
controller: 'dashController',
controllerAs: 'dash',
templateUrl: 'components/dash/dash.html',
redirectTo: 'dash.sendbulk',
})
.state('dash.sendbulk', {
url: 'sendbulk',
controller: 'sendbulkController',
controllerAs: 'sb',
templateUrl: 'components/sendbulk/sendbulk.html'
})
.state('dash.send', {
url: 'send',
controller: 'sendController',
controllerAs: 'snd',
templateUrl: 'components/send/send.html'
})
.state('dash.groups', {
url: 'groups',
controller: 'groupsController',
controllerAs: 'grp',
templateUrl: 'components/groups/groups.html'
})
.state('dash.group', {
url: 'groups/:groupid',
controller: 'groupController',
controllerAs: 'gr',
templateUrl: 'components/groups/group.html'
})
.state('dash.reports', {
url: 'reports',
controller: 'reportsController',
controllerAs: 'rep',
templateUrl: 'components/reports/reports.html'
})
.state('dash.report', {
url: 'reports/:messageid',
controller: 'reportController',
controllerAs: 'rept',
templateUrl: 'components/reports/report.html'
})
.state('dash.settings', {
url: 'settings',
controller: 'settingsController',
controllerAs: 'sett',
templateUrl: 'components/settings/settings.html'
});
$locationProvider.html5Mode({
enable : true,
});
$urlRouterProvider.otherwise("/");
}]);
})();