jsonrpc http server: expose health endpoint (#11395)

This commit is contained in:
Niklas Adolfsson
2022-05-11 12:39:39 +02:00
committed by GitHub
parent 52d9bf24cc
commit 79b1aa5677
22 changed files with 40 additions and 39 deletions
+1
View File
@@ -103,6 +103,7 @@ pub async fn start_http<M: Send + Sync + 'static>(
.max_request_body_size(max_payload_in as u32)
.max_response_body_size(max_payload_out as u32)
.set_access_control(acl.build())
.health_api("/health", "system_health")
.custom_tokio_runtime(rt);
let rpc_api = build_rpc_api(rpc_api);