Added create read update and delete methods to the post controller.