Comment explain, etc
Post route for editing posts. User send post form with edited post and post route posts the new updated post using post method. Simple :)
Connection for mongoose across all files for an Express app.
This is how I check if the user trying to modify the post is indeed the post owner. It checks the session user id against the post's owner id.
Another test, with long content... Another test, with long content... Another test, with long content... Another test, with long content... Another test, with long conten
Here is the below code commented / discussed / explained. The code below is just a function that prints "Hello World!". How original.