Created posts controller and updated post routes