Files
goGin/frontend/app/api/admin/posts/[id]/route.ts
Beyhan Oğur 2a5b661443 first commit
2026-04-26 21:46:42 +03:00

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}`);
}