Polarcraft/webv2/server/api/users/[id]/index.get.ts

6 lines
175 B
TypeScript
Raw Normal View History

2023-06-05 10:17:35 +02:00
export default defineEventHandler(async (event) => {
const userId: string = event.context.params ? event.context.params.id : '@me'
return await getUser(userId, event)
2023-06-01 22:06:11 +02:00
})