import { axiosClient } from '@/api/axiosClient'
import type { CreateMedioRequest, MedioCreated } from '../types'

export async function createMedio(payload: CreateMedioRequest): Promise<MedioCreated> {
  const response = await axiosClient.post<MedioCreated>('/api/v1/admin/medios', payload)
  return response.data
}
