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

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