Files
WRNexusJS/examples/auth-showcase/app/api/captcha/[...path].ts
2026-07-29 12:51:10 +05:30

11 lines
347 B
TypeScript

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;