aboutsummaryrefslogtreecommitdiff
path: root/src/server.js
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2020-04-05 14:39:45 -0500
committerMark Powers <markppowers0@gmail.com>2020-04-05 14:39:45 -0500
commit31969e94c89cf9b1233a3439a4000667e51876bf (patch)
tree9544a3450e100ca0cd7e41099ee4b08ee159185a /src/server.js
parentddddb356181baefbb03cbf710c9b6210b4d8de52 (diff)
Add zines page
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 });