private static PathMapping globPathMapping(String glob, int numGroupsToSkip) {
        if (glob.startsWith("/") && !glob.contains("*")) {
            // Does not have a pattern matcher.
            return new ExactPathMapping(glob);
        }

        return new GlobPathMapping(glob, numGroupsToSkip);
    }
Sets the {@link Route} to match the specified {@code prefix} and {@code pathPattern}. The mapped
{@link HttpService} is found when a {@linkplain ServiceRequestContext#path() path} is under
the specified {@code prefix} and the rest of the path matches the specified {@code pathPattern}.

@see #path(String)
core/src/main/java/com/linecorp/armeria/server/RouteBuilder.java