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

export default defineEventHandler(async (event) => {
  const slug = getRouterParam(event, 'slug')
  const body = await readBody(event)
  return platformApi(event, `/tenants/${slug}`, { method: 'PATCH', body })
})
