use failure::*; //use crate::tools; use crate::api_schema::*; use crate::api_schema::router::*; use serde_json::{json, Value}; fn get_network_config( _param: Value, _info: &ApiMethod, _rpcenv: &mut RpcEnvironment, ) -> Result { Ok(json!({})) } pub fn router() -> Router { let route = Router::new() .get(ApiMethod::new( get_network_config, ObjectSchema::new("Read network configuration.") .required("node", crate::api2::node::NODE_SCHEMA.clone()) )); route }