mirror of
https://github.com/ArthurDanjou/website.git
synced 2026-01-25 01:10:36 +01:00
Import drizzle replacing prisma
Signed-off-by: Arthur DANJOU <arthurdanjou@outlook.fr>
This commit is contained in:
4
server/api/categories.get.ts
Normal file
4
server/api/categories.get.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export default defineEventHandler(async (event) => {
|
||||
const { type } = getQuery<{ type: 'talent' | 'bookmark' }>(event)
|
||||
return useDB().select().from(tables.categories).where(eq(tables.categories.type, type))
|
||||
})
|
||||
Reference in New Issue
Block a user