Documentation
¶
Overview ¶
Package canopychi mounts Canopy on a chi router.
chi routes standard net/http handlers, so this adapter is a thin convenience layer. Mount registers the Canopy handler at the configured base path without http.StripPrefix, which Canopy forbids. The session middleware helpers return the root Canopy middleware unchanged so the call site names the framework consistently.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Mount ¶
Mount registers the Canopy handler on the router at the base path from Config.BasePath. Do not wrap the handler with http.StripPrefix.
func OptionalSession ¶
OptionalSession returns middleware that adds session data to the request context when a valid session is present and continues anonymously otherwise. Read the session with canopy.SessionFromContext.
Types ¶
This section is empty.