adds post routes and controller