Expose system health via RPC and REST (#1269)

* Implement health endpoint.

* Expose health API.
This commit is contained in:
Tomasz Drwięga authored and Gav Wood committed 2018-12-17 11:19:24 +01:00
1 parent 090ca9ee7c
commit c1b08cd9b0
11 files changed
+262 -69

No files matched your search

+1
View File
@@ -70,6 +70,7 @@ pub fn start_http(
) -> io::Result<http::Server> {
http::ServerBuilder::new(io)
.threads(4)
.health_api(("/health", "system_health"))
.rest_api(http::RestApi::Unsecure)
.cors(http::DomainsValidation::Disabled)
.max_request_body_size(MAX_PAYLOAD)