Added CRUD endpoints for posts.