@accelerated-software-development/caddy-api-client - v0.4.3
    Preparing search index...

    Variable RewriteHandlerSchemaConst

    RewriteHandlerSchema: ZodObject<
        {
            handler: ZodLiteral<"rewrite">;
            strip_path_prefix: ZodOptional<ZodString>;
            strip_path_suffix: ZodOptional<ZodString>;
            uri: ZodOptional<ZodString>;
            uri_substring: ZodOptional<
                ZodArray<
                    ZodObject<
                        {
                            find: ZodString;
                            limit: ZodOptional<ZodNumber>;
                            replace: ZodString;
                        },
                        "strip",
                        ZodTypeAny,
                        { find: string; limit?: number; replace: string },
                        { find: string; limit?: number; replace: string },
                    >,
                    "many",
                >,
            >;
        },
        "strip",
        ZodTypeAny,
        {
            handler: "rewrite";
            strip_path_prefix?: string;
            strip_path_suffix?: string;
            uri?: string;
            uri_substring?: { find: string; limit?: number; replace: string }[];
        },
        {
            handler: "rewrite";
            strip_path_prefix?: string;
            strip_path_suffix?: string;
            uri?: string;
            uri_substring?: { find: string; limit?: number; replace: string }[];
        },
    > = ...

    Rewrite handler schema - URI rewriting

    const rewrite = RewriteHandlerSchema.parse({
    handler: "rewrite",
    strip_path_prefix: "/api",
    });