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

15
index.html Normal file
View File

@@ -0,0 +1,15 @@
<html>
<head>
<title>Vinlottis</title>
<link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet">
</head>
<body>
<h1>Official vin lottis homepage</h1>
</body>
<style>
body {
font-family: 'Roboto', sans-serif;
}
</style>
</html>

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);