File size: 271 Bytes
a3fbcaf
67ea2ab
b857757
a3fbcaf
 
 
 
 
 
 
 
 
 
67ea2ab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import prisma from "@/_utils/prisma";

export async function GET() {
  const images = await prisma.logo.findMany({
    select: {
      id: true,
    },
    take: 24,
    orderBy: {
      id: "desc",
    },
  });
  return Response.json(images.map((image) => image.id));
}