functions/account-controller/Get-RmmDevices.ps1

function Get-RmmDevices {
    <#
    .SYNOPSIS
    Gets all devices in an account
     
    .DESCRIPTION
    Fetches the devices of the authenticated user's account
 
    .OUTPUTS
    [System.Object] custom object containing request response data
 
    .EXAMPLE
    $devices = Get-RmmDevices
 
    #>


    return New-RmmApiRequest -method GET -endpoint 'account/devices'
}