import { NextResponse } from "next/server"; export async function POST(request: Request) { try { const body = await request.json(); // Parse incoming JSON data const { name, email, password } = body; console.log("Signup API received data:"); console.log("Name:", name); console.log("Email:", email); console.log("Password:", password); // For now, just respond back with a success message return NextResponse.json({ message: "Signup successful!" }, { status: 201 }); } catch (error) { console.error("Error in signup endpoint:", error); return NextResponse.json({ message: "Internal Server Error" }, { status: 500 }); } }