public SELF route(String pathPattern) {
        requireNonNull(pathPattern, "pathPattern");
        routes.add(Route.builder().path(pathPattern).build());
        return self();
    }
Adds a path pattern that this policy is supposed to be applied to.

@param pathPattern the path pattern that this policy is supposed to be applied to
@return {@code this} to support method chaining.
@throws IllegalArgumentException if the path pattern is not valid
core/src/main/java/com/linecorp/armeria/server/cors/AbstractCorsPolicyBuilder.java