import { axiosClient } from '../../../api/axiosClient'
import type { PermisoDto } from './types'

export async function listPermisos(): Promise<PermisoDto[]> {
  const response = await axiosClient.get<PermisoDto[]>('/api/v1/permisos')
  return response.data
}
