lots of admin stuff. admin layout, user mangement page, new landing page, etc

This commit is contained in:
2025-12-08 07:08:54 -05:00
parent ce05593127
commit 2cd871b529
18 changed files with 807 additions and 80 deletions
+38
View File
@@ -0,0 +1,38 @@
// app/api/beta-signup/route.ts
import { NextResponse } from "next/server";
export async function POST(request: Request) {
try {
const { email, useCase } = await request.json();
if (!email || typeof email !== "string") {
return NextResponse.json({ error: "Email is required" }, { status: 400 });
}
// TODO: Wire this to Brevo
// - Either call Brevo's API directly from here
// - Or POST to your Spring backend which then talks to Brevo
//
// Example (pseudo):
// await fetch("https://api.brevo.com/v3/contacts", {
// method: "POST",
// headers: {
// "Content-Type": "application/json",
// "api-key": process.env.BREVO_API_KEY!,
// },
// body: JSON.stringify({
// email,
// attributes: { USE_CASE: useCase },
// listIds: [123], // your Brevo list ID
// updateEnabled: true,
// }),
// });
console.log("New beta signup:", { email, useCase });
return NextResponse.json({ ok: true });
} catch (err) {
console.error(err);
return NextResponse.json({ error: "Server error" }, { status: 500 });
}
}