Add documentation for VC API /lighthouse/beacon/health (#6653)

Changes the endpoint to get fallback health information from `/lighthouse/ui/fallback_health` to `/lighthouse/beacon/health`. This more accurately describes that the endpoint is related to the connected beacon nodes and also matched the `/lighthouse/beacon/update` endpoint being added in #6551.

Adds documentation for both fallback health and the endpoint to the Lighthouse book.
This commit is contained in:
Mac L
2025-04-30 12:07:07 +10:00
committed by GitHub
parent 34a6c3a930
commit 94ccd7608e
3 changed files with 75 additions and 8 deletions

View File

@@ -418,10 +418,10 @@ pub fn serve<T: 'static + SlotClock + Clone, E: EthSpec>(
},
);
// GET lighthouse/ui/fallback_health
let get_lighthouse_ui_fallback_health = warp::path("lighthouse")
.and(warp::path("ui"))
.and(warp::path("fallback_health"))
// GET lighthouse/beacon/health
let get_lighthouse_beacon_health = warp::path("lighthouse")
.and(warp::path("beacon"))
.and(warp::path("health"))
.and(warp::path::end())
.and(block_service_filter.clone())
.then(|block_filter: BlockService<T, E>| async move {
@@ -1294,7 +1294,7 @@ pub fn serve<T: 'static + SlotClock + Clone, E: EthSpec>(
.or(get_lighthouse_validators_pubkey)
.or(get_lighthouse_ui_health)
.or(get_lighthouse_ui_graffiti)
.or(get_lighthouse_ui_fallback_health)
.or(get_lighthouse_beacon_health)
.or(get_fee_recipient)
.or(get_gas_limit)
.or(get_graffiti)