endpoints/GET/Invoke-GetRoutes.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<# .DESCRIPTION This script will return the available routes for the Rest Endpoint. .EXAMPLE Invoke-GetRoutes.ps1 .NOTES This will return a json object #> [CmdletBinding()] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSReviewUnusedParameter", '')] param( $RequestArgs, $body ) Import-RouteSet -RoutesFilePath $RoutesFilePath $TempRoutes = $script:Routes | ConvertTo-Json $Message = $TempRoutes | ConvertFrom-Json return $Message |