pub fn layer(app: Router, node: Option<Arc<Node>>, state: Shared) -> RouterExpand description
Wrap the API router: adds /v1/ready, the cluster fields of
/v1/health, and (in cluster mode) refuses writes on a standby. Runs
before authentication, so load balancers can probe /v1/ready without
credentials.