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

export default defineEventHandler((event) => {
  // Forward filter query params verbatim — they match the platform-api DTO.
  const q = getQuery(event)
  return platformApi(event, '/audit', { query: q as Record<string, string | number | undefined> })
})
