8 lines
216 B
TypeScript
8 lines
216 B
TypeScript
|
|
import { PrismaClient } from '../../generated/prisma/client';
|
||
|
|
|
||
|
|
const prisma = new PrismaClient();
|
||
|
|
|
||
|
|
export async function GET() {
|
||
|
|
const contents = await prisma.content.findMany();
|
||
|
|
return Response.json(contents);
|
||
|
|
}
|