put route to update truckName, fixed CORS allow methods