import { api } from '@/shared/api/client'
import { requestSchema, responseSchema, type Request } from './schema'

export async function execute(request: Request) {
  const body = requestSchema.parse(request)
  const response = await api.post('/__ROUTE__', body)
  return responseSchema.parse(response.data)
}
