diff --git a/Evergreen/Public/Get-EvergreenEndpoint.ps1 b/Evergreen/Public/Get-EvergreenEndpoint.ps1 index 8fe8c6fd..eef04614 100644 --- a/Evergreen/Public/Get-EvergreenEndpoint.ps1 +++ b/Evergreen/Public/Get-EvergreenEndpoint.ps1 @@ -17,14 +17,14 @@ function Get-EvergreenEndpoint { Uri = "https://evergreen-api.stealthpuppy.com/endpoints/versions" ErrorAction = "Stop" } - $Versions = Invoke-RestMethod @params + $Versions = Invoke-EvergreenRestMethod @params # Get the endpoints from the download URLs $params = @{ Uri = "https://evergreen-api.stealthpuppy.com/endpoints/downloads" ErrorAction = "Stop" } - $Downloads = Invoke-RestMethod @params + $Downloads = Invoke-EvergreenRestMethod @params } process { # Output the endpoints by joining the two queries