diff --git a/src/app/getBots/route.ts b/src/app/getBots/route.ts new file mode 100644 index 0000000..d33e07d --- /dev/null +++ b/src/app/getBots/route.ts @@ -0,0 +1,14 @@ +import prisma from "@/lib/db"; + +export async function GET() { + const dbFetch = await prisma.bot.findMany({ + where: { + verified: true + } + }) + return new Response(JSON.stringify(dbFetch), { + headers: { + 'content-type': 'application/json' + } + }) +} \ No newline at end of file