import { axiosClient } from '@/api/axiosClient'
import type { ChargeableCharConfig } from '../types'

export async function getChargeableCharConfig(id: number): Promise<ChargeableCharConfig> {
  const response = await axiosClient.get<ChargeableCharConfig>(
    `/api/v1/admin/chargeable-chars/${id}`,
  )
  return response.data
}
