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

9 lines
224 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'
2023-06-06 13:49:27 +02:00
const user = await getUser(userId, event)
await applyUsername(user)
return user
2023-06-01 22:06:11 +02:00
})