-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
32 lines (25 loc) · 855 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
const express = require('express');
const app = express();
const path = require('path');
const router = express.Router();
router.get('/', function (req, res) {
res.sendFile(path.join(__dirname + '/index.html'));
});
router.get('/game.html', function (req, res) {
res.sendFile(path.join(__dirname + '/game.html'));
});
router.get('/css/styles.css', function (req, res) {
res.sendFile(path.join(__dirname + '/css/styles.css'));
});
router.get('/css/tabs.css', function (req, res) {
res.sendFile(path.join(__dirname + '/css/tabs.css'));
});
router.get('/js/game.js', function (req, res) {
res.sendFile(path.join(__dirname + '/js/game.js'));
});
router.get('/js/tabs.js', function (req, res) {
res.sendFile(path.join(__dirname + '/js/tabs.js'));
});
app.use('/', router);
app.listen(3000);
console.log("Listening on port 3000");