aboutsummaryrefslogtreecommitdiff
path: root/src/server.js
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2024-07-14 15:32:55 -0500
committerMark Powers <mark@marks.kitchen>2024-07-14 15:33:12 -0500
commit4c61d4a45c5c0e3639659312e57a9a38bc266b4a (patch)
tree7c0895d810d3eb0ef91812780b42bcc94bd5039a /src/server.js
parent80f0830f757b16d2c03ac8f427a6fa9608ef9bf9 (diff)
Add docker configurationHEADmaster
Diffstat (limited to 'src/server.js')
-rw-r--r--src/server.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server.js b/src/server.js
index b2b8d25..ff93d8f 100644
--- a/src/server.js
+++ b/src/server.js
@@ -153,6 +153,7 @@ function setUpRoutes(models, jwtFunctions, database, templates) {
next();
})
+ /*
// Route logging
server.use(function (req, res, next) {
let cookie = req.cookies.session;
@@ -165,6 +166,7 @@ function setUpRoutes(models, jwtFunctions, database, templates) {
});
next()
})
+ */
server.get('/', cache('5 minutes'), async (req, res) => {
let posts = await formatPostsForType(models, "index")