Private/Get-DuneApiUrl.ps1
|
function Get-DuneApiUrl { param( [Parameter(Mandatory)] [ValidateSet("Prod", "Dev","Test","Local")] [string]$DuneInstance ) switch ($DuneInstance) { 'Prod' { return 'https://duneframework.com/api' } 'Dev' { return 'https://dev.duneframework.com/api' } 'Test' { return 'https://test.duneframework.com/api' } 'Local' { return 'https://localhost:5001/api' } } } |