proxmox-backup/src/api2/node/network.rs

30 lines
571 B
Rust
Raw Normal View History

use failure::*;
2019-01-30 17:25:37 +00:00
//use crate::tools;
2019-02-17 09:16:33 +00:00
use crate::api_schema::*;
2019-02-17 08:59:20 +00:00
use crate::api_schema::router::*;
use serde_json::{json, Value};
use crate::api2::types::*;
fn get_network_config(
_param: Value,
_info: &ApiMethod,
_rpcenv: &mut dyn RpcEnvironment,
) -> Result<Value, Error> {
Ok(json!({}))
}
pub fn router() -> Router {
let route = Router::new()
.get(ApiMethod::new(
get_network_config,
2019-04-09 12:43:30 +00:00
ObjectSchema::new("Read network configuration.")
.required("node", NODE_SCHEMA.clone())
2019-04-09 12:43:30 +00:00
));
route
}