From 5c2645adaa53004b12599aa6eeac4389ed8d0799 Mon Sep 17 00:00:00 2001 From: Oliver Fay Date: Sat, 22 Feb 2020 18:29:36 -0500 Subject: [PATCH] Update server.js --- Server/server.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Server/server.js b/Server/server.js index f861a058..15aa6a53 100644 --- a/Server/server.js +++ b/Server/server.js @@ -2,18 +2,18 @@ const express = require('express') const app = express() const port = 3000 -app.use(express.static('Client/Public')); +app.use(express.static('client/public')); app.get('/menu', function (req, res) { - res.sendFile('title.html', { root: './Client/Views' }); + res.sendFile('mainMenu.html', { root: './client/html' }); }); app.get('/createNewBlock', function (req, res) { - res.sendFile('game.html', { root: './client/Views' }); + res.sendFile('createNewBlock.html', { root: '../client/html' }); }); app.get('/searchBlock', function (req, res) { - res.sendFile('about.html', { root: './client/Views' }); + res.sendFile('about.html', { root: './client/html' }); }); app.get('/results', function (req, res) { - res.sendFile('menu.html', { root: './client/Views' }); + res.sendFile('searchResults.html', { root: './client/html' }); }); app.listen(port, () => console.log(`Example app listening on port ${port}!`)) \ No newline at end of file