aboutsummaryrefslogtreecommitdiff
path: root/src/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/server.js')
-rw-r--r--src/server.js3
1 files changed, 3 insertions, 0 deletions
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 });