mirror of
https://github.com/sern-handler/frontpage-bot
synced 2026-06-06 01:16:54 +00:00
feat: getbot route
This commit is contained in:
14
src/app/getBots/route.ts
Normal file
14
src/app/getBots/route.ts
Normal 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'
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user