-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.js
41 lines (33 loc) · 878 Bytes
/
app.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
var express = require('express');
var app = express();
app.set('view engine', 'ejs');
// Home page
app.get('/', function(req, res) {
res.render('pages/home.ejs');
});
// About page
app.get('/about', function(req, res) {
res.render('pages/about.ejs');
});
// Community page
app.get('/community', function(req, res) {
res.render('pages/community.ejs');
});
// Helpline page
app.get('/helpline', function(req, res) {
res.render('pages/helpline.ejs');
});
// Donation page
app.get('/donation', function(req, res) {
res.render('pages/donation.ejs');
});
// Submit Story page
app.get('/submit-story', function(req, res) {
res.render('pages/submit-story.ejs');
});
// Job Application page
app.get('/job-application', function(req, res) {
res.render('pages/job-application.ejs');
});
app.listen(3000);
console.log('Server is listening on port 3000');