httpWrapper
httpWrapper(
handler,config?): (props) =>Promise<ElementNode>
Wraps a page handler with database initialization and optional authorization logic.
If the user is not authorized and the route is not marked as anonymous, the request is redirected to the login page.
Parameters
handler
(props) => Promise<ElementNode>
Page handler function
config?
HttpWrapperConfig
Optional configuration (e.g. anonymous access)
Returns
(
props):Promise<ElementNode>
Parameters
props
PageProps
Returns
Promise<ElementNode>