add option to modify path pattern in RouteHelper