aboutsummaryrefslogtreecommitdiff
path: root/src/server.js
diff options
context:
space:
mode:
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")