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

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