added function runRouteApi