create placeholder api endpoint

This commit is contained in:
leander committed 2025-06-20 01:03:43 +02:00
1 parent c6ac8caafe
commit c4d9957025
1 file changed
+7
+7
View File
@@ -0,0 +1,7 @@
import { NextResponse } from "next/server";
export async function POST(request: Request) {
const { input } = await request.json();
const correct = input === "test" || input === "test2";
return NextResponse.json({ input, name: input.toUpperCase(), correct, description: "title of person" });
}