-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
40 lines (29 loc) · 951 Bytes
/
index.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
var express = require('express');
var path = require('path');
var server = express();
server.use(express.static(path.join(__dirname, 'public')));
server.get('/', (req, res) => {
res.sendFile('index.html', { root: __dirname });
});
server.get('/casestudy/marketing', (req, res) => {
res.sendFile('marketing.html', { root: __dirname });
});
server.get('/about', (req, res) => {
res.sendFile('about.html', { root: __dirname });
});
server.get('/careers', (req, res) => {
res.sendFile('careers.html', { root: __dirname });
});
server.get('/contact', (req, res) => {
res.sendFile('contact.html', { root: __dirname });
});
server.get('/legal/privacy-policy', (req, res) => {
res.sendFile('privacy.html', { root: __dirname });
});
server.get('/legal/terms-of-use', (req, res) => {
res.sendFile('terms.html', { root: __dirname });
});
server.get('/health', (req, res) => {
res.send("ALL OK")
})
server.listen(5000);