Skip to main content

display_routes

Function display_routes 

Source
pub fn display_routes(ctx: HardwareCtx) -> Router<()>
Expand description

Build the PUBLIC TRMNL display router (relative paths, state baked in), returning a state-less Router<()> the host nests at /api/hardware/display on the public router. A device polls these with its OWN per-device Bearer token (which the global-RYU_TOKEN require_auth cannot gate), so each handler authenticates the device token against the registry itself — hence public, ungated.