Created posts controller.