@Override
    public final PathMapping withPrefix(String prefix) {
        prefix = ensureAbsolutePath(prefix, "prefix");
        if ("/".equals(prefix)) {
            return this;
        }
        return doWithPrefix(prefix.charAt(prefix.length() - 1) == '/' ? prefix : prefix + '/');
    }
Returns the path with its prefix removed.
core/src/main/java/com/linecorp/armeria/server/AbstractPathMapping.java