Loading...
Loading...
Turns an async function into a page/route data handler. The first argument is the Request; remaining arguments are injected application state or a Logger. Its return becomes the page's props.
Return a #[Props] struct - it becomes the page component's props:
Read a dynamic segment, and inject application state by name:
Return a Response directly to redirect or set a status; log with a Logger: