modified controller and routes to support proxy (bodyparser had to be disabled)