-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.js
63 lines (32 loc) · 1.31 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
module.exports = {
bind : function(app) {
// index
app.get('/', function(req, res, next) {
var data = {doctitle: 'Index'};
res.render('home', data);
});
// application
app.get('/pages/application/', function(req, res, next) {
var data = {doctitle: "Confirm your 2015 Basic Payment Scheme application"};
res.render('pages/application/home', data);
});
app.get('/pages/application/confirmation/', function(req, res, next) {
var data = {doctitle: "You’ve made your 2015 Basic Payment Scheme application"};
res.render('pages/application/confirmation/home', data);
});
app.get('/pages/application/submitted/', function(req, res, next) {
var data = {doctitle: "You've made your 2015 BPS application"};
res.render('pages/application/submitted/home', data);
});
// invalid application token
app.get('/pages/invalid-application-token/', function(req, res, next) {
var data = {doctitle: "Invalid Token"};
res.render('pages/invalid-application-token/home', data);
});
// service unavailable
app.get('/pages/service-unavailable/', function(req, res, next) {
var data = {doctitle: "Service Unavailable"};
res.render('pages/service-unavailable/home', data);
});
}
};