Server returns index page on port 30020.

This commit is contained in:
2020-01-17 13:55:04 +01:00
parent cdbd2accd0
commit a98c8d6131
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
const express = require('express');
const app = express();
const path = require('path');
app.get('/', function(req, res) {
res.sendFile(path.join(__dirname + '/index.html'));
});
app.listen(30020);