This commit is contained in:
Oliver Fay 2020-02-22 18:11:03 -05:00
parent c05b84455c
commit 6ba66efdbe
3 changed files with 20 additions and 1 deletions

19
Server/server.js Normal file
View file

@ -0,0 +1,19 @@
const express = require('express')
const app = express()
const port = 3000
app.use(express.static('Client/Public'));
app.get('/menu', function (req, res) {
res.sendFile('title.html', { root: './Client/Views' });
});
app.get('/createNewBlock', function (req, res) {
res.sendFile('game.html', { root: './client/Views' });
});
app.get('/searchBlock', function (req, res) {
res.sendFile('about.html', { root: './client/Views' });
});
app.get('/results', function (req, res) {
res.sendFile('menu.html', { root: './client/Views' });
});
app.listen(port, () => console.log(`Example app listening on port ${port}!`))

View file

@ -4,7 +4,7 @@
<body>
<link href="/createNewBlock.css" rel = "stylesheet">
<link href="../css/createNewBlock.css" rel = "stylesheet">
<script src=""></script>
<script src=""></script>