mongo fix

This commit is contained in:
gosangam
2026-04-14 19:12:11 +05:30
parent e2f8063d90
commit beffb9fae1
172 changed files with 18029 additions and 1298 deletions
+7
View File
@@ -0,0 +1,7 @@
import { NextResponse } from "next/server";
import { prisma } from "@/lib/db";
export async function GET() {
const metas = await prisma.bookMeta.findMany();
return NextResponse.json(metas.map((m) => ({ book: m.book, ...m.data as Record<string, unknown> })));
}