From 4c61d4a45c5c0e3639659312e57a9a38bc266b4a Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Sun, 14 Jul 2024 15:32:55 -0500 Subject: Add docker configuration --- src/server.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/server.js') 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") -- cgit v1.2.3