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

export async function moveRubro(id: number, payload: MoveRubroRequest): Promise<void> {
  await axiosClient.patch(`/api/v1/admin/rubros/${id}/mover`, payload)
}
