aduan sampah list

This commit is contained in:
bipproduction
2025-10-20 14:26:08 +08:00
parent ddef44e505
commit 17004cc835
2 changed files with 25 additions and 0 deletions

View File

@@ -43,5 +43,17 @@ const AduanRoute = new Elysia({
description: "tool untuk membuat aduan sampah liar",
}
})
.get("/list-aduan-sampah", async () => {
const data = await prisma.pengaduanSampah.findMany()
return {
success: true,
data: data
}
}, {
detail: {
summary: "list aduan sampah",
description: "tool untuk melihat list aduan sampah liar",
}
})
export default AduanRoute