12 lines
365 B
TypeScript
12 lines
365 B
TypeScript
import { NextRequest } from "next/server";
|
|
import { handleImageProxyRequest } from "@/lib/api-proxy";
|
|
|
|
export async function PUT(
|
|
req: NextRequest,
|
|
context: { params: Promise<{ id: string }> }
|
|
) {
|
|
const { id } = await context.params;
|
|
console.log("API Route PUT called with id:", id);
|
|
return handleImageProxyRequest(req, `/admin/posts/${id}`);
|
|
}
|