feat: page cache + save/load logic + db fixes

This commit is contained in:
Nicolas Giard
2018-09-15 20:58:23 -04:00
parent 572393aa7b
commit 2c6a95f900
9 changed files with 159 additions and 66 deletions

View File

@@ -34,7 +34,7 @@ router.get('/*', async (req, res, next) => {
path: pageArgs.path,
locale: pageArgs.locale,
userId: req.user.id,
private: false
isPrivate: false
})
if (page) {
res.render('page', { page })