14 lines
395 B
TypeScript
14 lines
395 B
TypeScript
// import { PrismaClient } from '../../generated/prisma/client';
|
|
|
|
// const prisma = new PrismaClient();
|
|
|
|
// export async function GET() {
|
|
// const publishers = await prisma.content.findMany({
|
|
// distinct: ['publisher'],
|
|
// select: {
|
|
// publisher: true,
|
|
// },
|
|
// });
|
|
// const publisherList = publishers.map(p => p.publisher);
|
|
// return Response.json(publisherList);
|
|
// }
|