update routePath and routeResource