Product: PowerShell Universal
Version: 1.4.6
Is it possible to use optional parameters for a dynamic page?
For example:
New-UDPage -Name $name -url "/output/:id/:id2/:id3/:id4/:id5" -Endpoint {
param($id,$id2,$id3,$id4,$id5)
#Page Content
}
I want to be able to hit the page even if I only pass in 2 parameters … i.e. https://localhost/dashboard/output/28/29
I get a page not found if I do not include a value for every parameter.
OR… is it possible to pass in an array to one parameter?