Goal: When you go to localhost:3000 you should see the posts you created in the compose page.
Scroll down for a hint 👇
let posts = [];
Post.find({}, function(err, posts){
res.render("home", {
startingContent: homeStartingContent,
posts: posts
});
})
0 comments