import { requireSuperAdmin } from '../../utils/auth'
import { handleApiError, createSuccessResponse } from '../../utils/errors'

type OverviewResponse = Record<string, never>

export default defineEventHandler(async (event) => {
  try {
    await requireSuperAdmin(event)

    // Placeholder simple overview; can be extended later
    return createSuccessResponse<OverviewResponse>({} as OverviewResponse)
  } catch (error) {
    throw handleApiError(error)
  }
})
