It would be good to not have to provide abolute pathing for ps scripts.
I was thinking something along the lines of:
in the start-RestPSListener use the RestPSLocalRoot param
then:
function Invoke-RequestRouter{
param (...
[Parameter(Mandatory = $false)][String]$RestPSLocalRoot = $PSScriptRoot
...)
Set-Location $RestPSLocalRoot
this will allow relative path in the ps calls - eg:
"RequestCommand": "./Invoke-GetRoutes.ps1"
It would be good to not have to provide abolute pathing for ps scripts. I was thinking something along the lines of: in the start-RestPSListener use the RestPSLocalRoot param then: function Invoke-RequestRouter{ param (... [Parameter(Mandatory = $false)][String]$RestPSLocalRoot = $PSScriptRoot ...) Set-Location $RestPSLocalRoot
this will allow relative path in the ps calls - eg: "RequestCommand": "./Invoke-GetRoutes.ps1"