You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.
A shorthand version of doing New-WebRoute -Method "PUT"
PARAMETERS
Path: The HTTP Route/Path/endpoint that you call to trigger this script
ScriptBlock: A script block that will be triggered when this HTTP Route/Path/endpoint has been called
ScriptPath: A path to a script that will be triggered when this HTTP Route/Path/endpoint has been called
CommonParameters
EXAMPLE
# Using a script blockNew-PutRoute-Path "/helloworld"-ScriptBlock {
$response.Send('Hello World');
}
# Using a script pathNew-PutRoute-Path "/helloworld"-ScriptPath ./example.ps1