Skip to content

Commit

Permalink
Update Get-EvergreenEndpoint.ps1
Browse files Browse the repository at this point in the history
Change to Invoke-EvergreenRestMethod
  • Loading branch information
aaronparker committed Apr 15, 2024
1 parent ff712a0 commit f3918d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Evergreen/Public/Get-EvergreenEndpoint.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f3918d5

Please sign in to comment.