mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 04:41:02 +00:00
Expose system health via RPC and REST (#1269)
* Implement health endpoint. * Expose health API.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user