import { NextResponse } from 'next/server'; import { withAuth, type AuthContext } from '@/lib/api/helpers'; export const GET = withAuth(async (_req, ctx: AuthContext) => { return NextResponse.json({ data: { userId: ctx.userId, portId: ctx.portId, portSlug: ctx.portSlug, permissions: ctx.permissions, isSuperAdmin: ctx.isSuperAdmin, user: ctx.user, }, }); });