first commit
This commit is contained in:
11
frontend/app/api/admin/posts/[id]/route.ts
Normal file
11
frontend/app/api/admin/posts/[id]/route.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
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}`);
|
||||
}
|
||||
Reference in New Issue
Block a user