Initial commit

This commit is contained in:
Developer
2026-02-06 21:44:04 -06:00
commit f85e93c7a6
151 changed files with 22916 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { NextRequest } from "next/server";
import { generateCaptcha } from "../../../../lib/captcha";
import { ok } from "../../../../lib/http";
export async function GET(req: NextRequest) {
const { id, code } = generateCaptcha(Date.now().toString());
// Log the code to console for dev/demo purposes
console.log(`CAPTCHA Code: ${code}`);
return ok({
captchaId: id,
captchaCode: code, // Return the code to display to user
message: "CAPTCHA code generated. Enter it below to continue.",
});
}