mirror of
https://github.com/ArthurDanjou/arthome.git
synced 2026-01-27 01:40:28 +01:00
Working on arthome
This commit is contained in:
7
server/api/categories/index.get.ts
Normal file
7
server/api/categories/index.get.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export default defineEventHandler(async (event) => {
|
||||
const user = await getUserSession(event)
|
||||
console.log('session', user)
|
||||
return useDrizzle().query.categories.findMany({
|
||||
where: eq(tables.users.id, user.id),
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user