test
Browse files- app/api/logo/route.ts +11 -10
app/api/logo/route.ts
CHANGED
@@ -1,14 +1,15 @@
|
|
1 |
import prisma from "@/_utils/prisma";
|
2 |
|
3 |
export async function GET() {
|
4 |
-
const images = await prisma.logo.findMany({
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
});
|
13 |
-
return Response.json(images.map((image) => image.id));
|
|
|
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 |
}
|