Modify endpoint post /posts/edit to update content of post.