11 lines
312 B
TypeScript
11 lines
312 B
TypeScript
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}`);
|
|
}
|