diff options
Diffstat (limited to 'controllers/post.js')
-rw-r--r-- | controllers/post.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/controllers/post.js b/controllers/post.js index d879fcc..09bbdec 100644 --- a/controllers/post.js +++ b/controllers/post.js @@ -6,6 +6,7 @@ module.exports = { Post.find().lean().exec((err, posts) => { res.render('home', { title: 'Home Page', + auth: req.isAuthenticated(), home: true, posts: posts }); @@ -15,6 +16,7 @@ module.exports = { create(req, res) { res.render('new-post', { title: 'Make A New Post', + auth: req.isAuthenticated(), newPost: true }); }, |