import { NextRequest } from "next/server";
import { proxyRequest } from "@/lib/backend";

type RouteContext = {
  params: { id: string; goalId: string };
};

export async function PATCH(req: NextRequest, { params }: RouteContext) {
  return proxyRequest(req, `households/${params.id}/goals/${params.goalId}`);
}
