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

4 lines
130 B
TypeScript

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