import { axiosClient } from '@/api/axiosClient'
import type { CreateRubroRequest, Rubro } from '../types'

export async function createRubro(payload: CreateRubroRequest): Promise<Rubro> {
  const response = await axiosClient.post<Rubro>('/api/v1/admin/rubros', payload)
  return response.data
}
