mirror of
https://github.com/UiO-Gaming/name-100-uio-gamers.git
synced 2026-11-05 13:56:53 +01:00
create placeholder api endpoint
This commit is contained in:
1 file changed
+7
@@ -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" });
|
||||
}
|
||||
Reference in new issue
Block a user