-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
16 lines (15 loc) · 1.26 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var express = require('express');
var app = express();
app.get('/', function(req, res){ res.sendFile(__dirname + '/index.html'); });
app.get('/src/riversi.js', function(req, res){ res.sendFile(__dirname + '/src/riversi.js'); });
app.get('/src/renderer.js', function(req, res){ res.sendFile(__dirname + '/src/renderer.js');});
app.get('/src/mesh.js', function(req, res){ res.sendFile(__dirname + '/src/mesh.js'); });
app.get('/src/game.js', function(req, res){ res.sendFile(__dirname + '/src/game.js'); });
app.get('/clouds1/clouds1_east.bmp', function(req, res){ res.sendFile(__dirname + '/clouds1/clouds1_east.bmp'); });
app.get('/clouds1/clouds1_west.bmp', function(req, res){ res.sendFile(__dirname + '/clouds1/clouds1_west.bmp'); });
app.get('/clouds1/clouds1_up.bmp', function(req, res){ res.sendFile(__dirname + '/clouds1/clouds1_up.bmp'); });
app.get('/clouds1/clouds1_down.bmp', function(req, res){ res.sendFile(__dirname + '/clouds1/clouds1_down.bmp'); });
app.get('/clouds1/clouds1_north.bmp', function(req, res){ res.sendFile(__dirname + '/clouds1/clouds1_north.bmp');});
app.get('/clouds1/clouds1_south.bmp', function(req, res){ res.sendFile(__dirname + '/clouds1/clouds1_south.bmp');});
const http = require('http').Server(app);
http.listen(8080);