From 31969e94c89cf9b1233a3439a4000667e51876bf Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Sun, 5 Apr 2020 14:39:45 -0500 Subject: Add zines page --- src/server.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/server.js') diff --git a/src/server.js b/src/server.js index b92d7d4..0d01641 100644 --- a/src/server.js +++ b/src/server.js @@ -102,6 +102,9 @@ function setUpRoutes(models, jwtFunctions, database) { server.get('/chess', (req, res) => res.sendFile(__dirname + "/html/chess.html")); server.get('/admin/chess', async (req, res, next) => res.sendFile(__dirname + "/html/chess.html")); server.get('/projects', (req, res) => res.sendFile(__dirname + "/html/projects.html")); + server.get('/zines', (req, res) => res.sendFile(__dirname + "/public/zines.html")); + server.use('/static', express.static(__dirname + '/public')) + server.get('/wordsquares/best', async (req, res, next) => { var best = await database.query("select words, name from wordsquares where best = 1", { type: database.QueryTypes.SELECT }) res.status(200).send({ best: best }); -- cgit v1.2.3