src/api2/node.rs: add node parameter
This commit is contained in:
@ -20,7 +20,9 @@ pub fn router() -> Router {
|
||||
let route = Router::new()
|
||||
.get(ApiMethod::new(
|
||||
get_network_config,
|
||||
ObjectSchema::new("Read network configuration.")));
|
||||
ObjectSchema::new("Read network configuration.")
|
||||
.required("node", crate::api2::node::NODE_SCHEMA.clone())
|
||||
));
|
||||
|
||||
route
|
||||
}
|
||||
|
Reference in New Issue
Block a user