Created the posts controller.