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
In Pode there is the WebEvent, which contains all of the Request, Response, Header, Cookie, etc info for a current web request. This WebEvent is then typically supplied to Routes, Middleware, etc as a first default parameter:
The above works exactly the same, and works in Routes, Middleware, and Authentication (Method, Validator, and Post-Validator - each of which don't have it supplied at the moment!)
The docs will need a big clean-up, but it should make routes cleaner not having to constantly do param($e).
The text was updated successfully, but these errors were encountered:
In Pode there is the WebEvent, which contains all of the Request, Response, Header, Cookie, etc info for a current web request. This WebEvent is then typically supplied to Routes, Middleware, etc as a first default parameter:
However, it's actually possible to just use
$WebEvent.Query['name']
!The above works exactly the same, and works in Routes, Middleware, and Authentication (Method, Validator, and Post-Validator - each of which don't have it supplied at the moment!)
The docs will need a big clean-up, but it should make routes cleaner not having to constantly do
param($e)
.The text was updated successfully, but these errors were encountered: