There was an error while loading. Please reload this page.
Add a new route middleware.
New-RouteMiddleware [-Name] <String> [[-ScriptBlock] <ScriptBlock>] [-ScriptPath <String>]
Route middleware is used to manipulate request and response objects before it makes it to your route logic.
$JsonBodyParserMiddlerware = { if ($Request.BodyString -ne $null) { $Request.Body = $Request.BodyString | ConvertFrom-Json } } New-RouteMiddleware -Name JsonBodyParser -ScriptBlock $JsonBodyParserMiddleware
The name of the middleware.
The middleware script block that will be executed
A path to the middleware script that will be executed