-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui_routes.js
49 lines (39 loc) · 1.55 KB
/
ui_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
var config = require('./config/config.js');
var routes = require('./routes.js');
var ui_routes = {
'root' : '/?',
'home' : '/?',
// contact
'contactUs' : '/contactUs/?',
// privacy policy
'privacy' : '/privacy/?',
// scenario routes
'scenarioList' : '/scenarios/?',
'scenarioCreate' : '/scenarios/new/?',
'scenarioEdit' : '/scenarios/edit/:uuid/?',
'scenarioView' : '/scenarios/:uuid/?',
'scenarioEvalView' : '/scenarios/evaluate/:uuid/?',
// reports routes
'reportList' : '/reports/?',
'reportView' : '/reports/:uuid/?',
// User routes
'userView' : '/users/:uuid/?',
// authentication routes
'profile' : '/auth/profile/?',
'change_password' : '/auth/change-password/?',
'login-internal' : '/auth/login-internal/?',
'login' : '/auth/login/?',
'logout' : '/auth/logout/?',
'signup' : '/auth/signup/?',
'forgot-password' : '/auth/forgot-password/?',
// Admin routes
'sysinfo' : '/sysinfo/?',
'admin_userList' : '/admin/users/?',
'admin_userEdit' : '/admin/users/:uuid/?',
'admin_questionnaire' : '/admin/questionnaire/?'
};
module.exports = {
route : routes.route(config.contextPath, ui_routes, { relative : false }),
reverse : routes.reverse(config.contextPath, ui_routes, { relative : false }),
asset : routes.asset(config.contextPath, { relative : false })
};