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
Add support on Add-PodeRoute for multiple values on -Method to be supplied, making it easier to create a Route that works on multiple Methods - much like how -EndpointName works.
For example, this will create a [GET] /users and [POST] /users route, that share a scriptblock:
Add-PodeRoute-Method Get, Post -Path '/users'-ScriptBlock {}
If you need to know the method used, then it will be in $WebEvent.Method in the scriptblock.
The text was updated successfully, but these errors were encountered:
Describe the Change
Add support on
Add-PodeRoute
for multiple values on-Method
to be supplied, making it easier to create a Route that works on multiple Methods - much like how-EndpointName
works.For example, this will create a
[GET] /users
and[POST] /users
route, that share a scriptblock:If you need to know the method used, then it will be in
$WebEvent.Method
in the scriptblock.The text was updated successfully, but these errors were encountered: