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
Another helper function for creating routes more easily, similar to ConvertTo-PodeRoute; this one is Add-PodePage and will only generate HTML GET Routes.
For example:
Add-PodePage-Name Service -ScriptBlock { Get-Service }
is a more simplified version of:
Add-PodeRoute-Method Get -Path '/Services'-ScriptBlock {
Write-PodeHtmlResponse-Value (Get-Service)
}
This could also have support for -File and -View, and like ConvertTo-PodeRoute should also support -Middleware.
The text was updated successfully, but these errors were encountered:
Another helper function for creating routes more easily, similar to
ConvertTo-PodeRoute
; this one isAdd-PodePage
and will only generate HTML GET Routes.For example:
is a more simplified version of:
This could also have support for
-File
and-View
, and likeConvertTo-PodeRoute
should also support-Middleware
.The text was updated successfully, but these errors were encountered: