middle 2
This commit is contained in:
8
app/api/contents/get/route.ts
Normal file
8
app/api/contents/get/route.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { PrismaClient } from '@/app/generated/prisma';
|
||||
|
||||
const prisma = new PrismaClient();
|
||||
|
||||
export async function GET() {
|
||||
const contents = await prisma.content.findMany();
|
||||
return Response.json(contents);
|
||||
}
|
||||
Reference in New Issue
Block a user