feat:update form

This commit is contained in:
2026-07-28 00:02:34 +07:00 Unverified
parent 0e8c816276
commit fa35f00f38
25 changed files with 919 additions and 149 deletions
+18
View File
@@ -0,0 +1,18 @@
import { db } from "@/db";
import { cdnImageResponse } from "@/lib/cdn-response";
export async function GET(
_request: Request,
{ params }: { params: Promise<{ id: string }> }
) {
const { id } = await params;
const record = await db.query.cdn.findFirst({
where: (cdn, { eq }) => eq(cdn.id, id),
});
if (!record) {
return new Response("Not found", { status: 404 });
}
return cdnImageResponse(record);
}