mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-22 22:34:45 +00:00
Update HTTP API docs (#1010)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use crate::{
|
||||
advanced, beacon, consensus, error::ApiError, helpers, metrics, network, node, spec, validator,
|
||||
BoxFut, NetworkChannel,
|
||||
advanced, beacon, consensus, error::ApiError, helpers, lighthouse, metrics, network, node,
|
||||
spec, validator, BoxFut, NetworkChannel,
|
||||
};
|
||||
use beacon_chain::{BeaconChain, BeaconChainTypes};
|
||||
use eth2_config::Eth2Config;
|
||||
@@ -57,9 +57,6 @@ pub fn route<T: BeaconChainTypes>(
|
||||
current_slot,
|
||||
))
|
||||
}
|
||||
(&Method::GET, "/node/lighthouse_syncing") => {
|
||||
into_boxfut(node::lighthouse_syncing::<T::EthSpec>(req, network_globals))
|
||||
}
|
||||
|
||||
// Methods for Network
|
||||
(&Method::GET, "/network/enr") => {
|
||||
@@ -214,6 +211,11 @@ pub fn route<T: BeaconChainTypes>(
|
||||
freezer_db_path,
|
||||
)),
|
||||
|
||||
// Lighthouse specific
|
||||
(&Method::GET, "/lighthouse/syncing") => {
|
||||
into_boxfut(lighthouse::syncing::<T::EthSpec>(req, network_globals))
|
||||
}
|
||||
|
||||
_ => Box::new(futures::future::err(ApiError::NotFound(
|
||||
"Request path and/or method not found.".to_owned(),
|
||||
))),
|
||||
|
||||
Reference in New Issue
Block a user