enzostvs HF staff commited on
Commit
a3fbcaf
·
1 Parent(s): 67230b7
Files changed (1) hide show
  1. app/api/logo/route.ts +11 -12
app/api/logo/route.ts CHANGED
@@ -1,15 +1,14 @@
1
- // import prisma from "@/_utils/prisma";
2
 
3
  export async function GET() {
4
- // const images = await prisma.logo.findMany({
5
- // select: {
6
- // id: true,
7
- // },
8
- // take: 24,
9
- // orderBy: {
10
- // id: "desc",
11
- // },
12
- // });
13
- // return Response.json(images.map((image) => image.id));
14
- return Response.json([]);
15
  }
 
1
+ import prisma from "@/_utils/prisma";
2
 
3
  export async function GET() {
4
+ const images = await prisma.logo.findMany({
5
+ select: {
6
+ id: true,
7
+ },
8
+ take: 24,
9
+ orderBy: {
10
+ id: "desc",
11
+ },
12
+ });
13
+ return Response.json(images.map((image) => image.id));
 
14
  }