functions/account-controller/Get-RmmComponents.ps1

function Get-RmmComponents {
    <#
    .SYNOPSIS
    Gets component information
 
    .DESCRIPTION
    Fetches the components records of the authenticated user's account
 
    .OUTPUTS
    [System.Array] Object containing component data
 
    .EXAMPLE
    $components = Get-RmmComponents
    #>


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