Polarcraft/webv2/server/api/users/[id]/index.get.ts
Xeovalyte 3eb4453d71
All checks were successful
Build and Deploy / Deploy Web (push) Successful in 1m5s
Build and Deploy / Deploy Discord Bot (push) Successful in 44s
feat: Added minecraft linking system, closes #29
2023-06-05 22:41:48 +02:00

6 lines
175 B
TypeScript

export default defineEventHandler(async (event) => {
const userId: string = event.context.params ? event.context.params.id : '@me'
return await getUser(userId, event)
})