Skip to main content

layer

Function layer 

Source
pub fn layer(app: Router, node: Option<Arc<Node>>, state: Shared) -> Router
Expand 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.