mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-09 04:07:07 +00:00
Expose system health via RPC and REST (#1269)
* Implement health endpoint. * Expose health API.
This commit is contained in:
1 parent
090ca9ee7c
commit
c1b08cd9b0
11 files changed
+262
-69
No files matched your search
@@ -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