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

export async function getProductTypeById(id: number): Promise<ProductTypeDetail> {
  const response = await axiosClient.get<ProductTypeDetail>(`/api/v1/product-types/${id}`)
  return response.data
}
