Showing
1 changed file
with
29 additions
and
0 deletions
server.js
0 → 100644
1 | +const express = require('express'); | ||
2 | +const app = express(); | ||
3 | +app.use(express.static(__dirname)); | ||
4 | + | ||
5 | +app.listen(8080, function(){ | ||
6 | + console.log('listening on 8080'); | ||
7 | +}); | ||
8 | + | ||
9 | +app.get('/', function(req, res){ | ||
10 | + res.sendFile(__dirname + '/main.html'); | ||
11 | +}); | ||
12 | + | ||
13 | +app.get('/main.html', function(req, res){ | ||
14 | + res.sendFile(__dirname + '/main.html'); | ||
15 | +}); | ||
16 | + | ||
17 | +app.get('/introduction.html', function(req, res){ | ||
18 | + res.sendFile(__dirname + '/introduction.html'); | ||
19 | +}); | ||
20 | + | ||
21 | +app.get('/calendar.html', function(req, res){ | ||
22 | + res.sendFile(__dirname + '/calendar.html'); | ||
23 | +}); | ||
24 | + | ||
25 | + | ||
26 | +app.get('/simulation.html', function(req, res){ | ||
27 | + res.sendFile(__dirname + '/simulation.html'); | ||
28 | +}); | ||
29 | + |
-
Please register or login to post a comment