import { platformApi } from '~~/server/utils/platform-api'

// Invoices for a single tenant (tenant-detail billing tab). Operator-only.
export default defineEventHandler(async (event) => {
  const slug = getRouterParam(event, 'slug')
  return platformApi(event, `/billing/tenants/${slug}/invoices`)
})
