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

export default defineEventHandler(async (event) => {
  const q = getQuery(event)
  const includeInactive = q.includeInactive === 'true'
  return platformApi(event, `/prices${includeInactive ? '?includeInactive=true' : ''}`)
})
