NetboxPS/Functions/Setup/Get-NetboxURLPath.ps1
2023-03-22 17:20:22 +08:00

11 lines
No EOL
301 B
PowerShell

function Get-NetboxURLPath {
[CmdletBinding()]
param ()
Write-Verbose "Getting Netbox URL Path"
if ($null -eq $script:NetboxConfig.URLPath) {
throw "Netbox URL Path is not set! You may set it with Set-NetboxURLPath -Path 'netbox/'"
}
$script:NetboxConfig.URLPath
}