Remove static chooseRoom file, and use react-router instead.

This commit is contained in:
Håvar Aambø Fosstveit
2019-11-10 00:01:01 +01:00
parent 37bac2f650
commit daf661889d
9 changed files with 326 additions and 94 deletions
-5
View File
@@ -328,11 +328,6 @@ async function runHttpsServer()
res.redirect(`https://${req.hostname}${req.url}`);
});
app.get('/', (req, res) =>
{
res.sendFile(`${__dirname}/public/chooseRoom.html`);
});
// Serve all files in the public folder as static files.
app.use(express.static('public'));