first commit
This commit is contained in:
8
app/api/contents/route.ts
Normal file
8
app/api/contents/route.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { PrismaClient } from '../../generated/prisma/client';
|
||||
|
||||
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