-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserver.js
More file actions
61 lines (46 loc) · 1.55 KB
/
server.js
File metadata and controls
61 lines (46 loc) · 1.55 KB
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
var express = require('express');
var app = express();
var path = require('path');
app.get('/', function(req, res) {
res.redirect('/music2018');
});
app.get('/music2018', function(req, res) {
res.sendFile(path.join(__dirname + '/music2018.html'))
})
app.get('/music2017', function(req, res) {
res.sendFile(path.join(__dirname + '/music2017.html'))
})
app.get('/tree', function(req, res) {
res.sendFile(path.join(__dirname + '/tree.html'))
})
app.get('/navbar.html', function(req, res) {
res.sendFile(path.join(__dirname + '/navbar.html'))
})
app.get('/footer.html', function(req, res) {
res.sendFile(path.join(__dirname + '/footer.html'))
})
app.get('/bundle.js', function(req, res) {
res.sendFile(path.join(__dirname + '/bundle.js'));
});
app.get('/music2018bundle.js', function(req, res) {
res.sendFile(path.join(__dirname + '/music2018bundle.js'));
});
app.get('/music2017bundle.js', function(req, res) {
res.sendFile(path.join(__dirname + '/music2017bundle.js'));
});
app.get('/treebundle.js', function(req, res) {
res.sendFile(path.join(__dirname + '/treebundle.js'));
});
app.get('/data.json', function(req, res) {
res.sendFile(path.join(__dirname + '/data.json'));
});
app.get('/styles.css', function(req, res) {
res.sendFile(path.join(__dirname + '/styles.css'));
});
app.get('/js/bootstrap.min.js', function(req, res) {
res.sendFile(path.join(__dirname + '/js/bootstrap.min.js'));
});
app.get('/css/bootstrap.min.css', function(req, res) {
res.sendFile(path.join(__dirname + '/css/bootstrap.min.css'));
});
app.listen(3000);