import { NextResponse } from "next/server";
import { getSessionCustomer } from "../../../lib/customerAuth";

export async function GET() {
  const session = await getSessionCustomer();
  if (!session) return NextResponse.json({ customer: null }, { status: 401 });
  return NextResponse.json({ customer: session.customer });
}
