feat: getbot route

This commit is contained in:
2024-05-19 21:57:54 +02:00
parent 65a1a0f5e4
commit f645899f46

14
src/app/getBots/route.ts Normal file
View File

@@ -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'
}
})
}