-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.js
99 lines (55 loc) · 1.75 KB
/
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
module.exports = {
bind : function(app) {
// home
app.get('/', function(req, res, next) {
var data = {doctitle: 'Home'};
res.render('home', data);
});
// basic eligibility
app.get('/basic-eligibility/', function(req, res, next) {
var data = {
doctitle: 'Basic eligibility',
eligible: true
};
res.render('basic-eligibility/home', data);
});
// submission
app.get('/submission/', function(req, res, next) {
var data = {
doctitle: 'Submission',
terms: true
};
res.render('submission/home', data);
});
// confirmation
app.get('/confirmation/', function(req, res, next) {
var data = {doctitle: 'Confirmation'};
res.render('confirmation/home', data);
});
// eligible
app.get('/eligibility/eligible/', function(req, res, next) {
var data = {doctitle: 'Eligible'};
res.render('eligibility/eligible/home', data);
});
// not eligible
app.get('/eligibility/noteligible/', function(req, res, next) {
var data = {doctitle: 'Not eligible'};
res.render('eligibility/noteligible/home', data);
});
// additional questions
app.get('/additional/', function(req, res, next) {
var data = {doctitle: 'Additional questions'};
res.render('additional/home', data);
});
// legal
app.get('/legal/', function(req, res, next) {
var data = {doctitle: 'Legal'};
res.render('legal/home', data);
});
// options
app.get('/options/', function(req, res, next) {
var data = {doctitle: 'Options'};
res.render('options/home', data);
});
}
};