update route for api