Skip to main content

layer

Function layer 

Source
pub fn layer(app: Router, ctx: Arc<Ctx>, state: Shared) -> Router
Expand description

Wrap the API router for shared mode: /v1/ready, the shared fields of /v1/health, fresh definitions, and replies for signals and cancels that were forwarded to another node.