Skip to content

Commit

Permalink
correction
Browse files Browse the repository at this point in the history
  • Loading branch information
namankoolwal committed Jul 30, 2024
1 parent d6a3567 commit 4eea3c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/post.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const singlePost = async (req, res) =>{
return res.status(404).send("Post not found");
}
// res.send(post);
res.render('singlePost' , {post , nav: user ? true : false});
res.render('singlepost' , {post , nav: user ? true : false});
} catch (error) {
console.error(error);
return res.status(500).send("Server error");
Expand Down

0 comments on commit 4eea3c9

Please sign in to comment.