mirror of
https://github.com/ArthurDanjou/arthome.git
synced 2026-01-14 12:14:33 +01:00
14 lines
292 B
TypeScript
14 lines
292 B
TypeScript
export default defineEventHandler(async (event) => {
|
|
const user = await requireUserSession(event)
|
|
return useDrizzle().query.users.findFirst({
|
|
where: eq(tables.users.id, user.id),
|
|
with: {
|
|
categories: {
|
|
with: {
|
|
tabs: true,
|
|
},
|
|
},
|
|
},
|
|
})
|
|
})
|