import type { Context } from "@wrnexus/core";
import { captchaHandlers } from "../../lib/captcha.ts";

async function handle(ctx: Context): Promise<Response> {
  return (await captchaHandlers.handle(ctx.req, ctx)) ?? new Response("Not Found", { status: 404 });
}

export const GET = handle;
export const HEAD = handle;
export const POST = handle;
