import { NextResponse } from "next/server"; // Mock user for now - in production, fetch from database export async function GET() { try { // TODO: In production, get user from session const user = { id: "1", name: "Parent", email: "parent@example.com", }; return NextResponse.json({ user }); } catch (error) { return NextResponse.json({ error: String(error) }, { status: 500 }); } } export async function POST(request: Request) { try { const body = await request.json(); const { name } = body; // TODO: Save to database in production return NextResponse.json({ success: true, name }); } catch (error) { return NextResponse.json({ error: String(error) }, { status: 500 }); } }