VB
Size: a a a
VB
m
m
Import-Module Polaris
New-PolarisRoute -Path "/api" -Method POST -Scriptblock {
if ($Request.Body) {
$Request.Body | convertto-json | Out-File "$Path\Input\$(Get-Date -Format "yyyyMMdd").json"
}
}
$app = Start-Polaris -Port 8080 -MinRunspaces 3 -MaxRunspaces 6 -Verbose -UseJsonBodyParserMiddleware
while($app.Listener.IsListening){
Wait-Event callbackcomplete
}
m
АР
m
[IO.File]::WriteAllLines, пока кажется что все ок
VG
A
A
АР
-Add
вместо -Replace
?А
A
AF
A
A
A
А
A
А