src/api2/node.rs: add node parameter

This commit is contained in:
Dietmar Maurer
2019-04-09 14:43:30 +02:00
parent 7ae0bf52dd
commit d8d40dd0c2
8 changed files with 52 additions and 10 deletions

View File

@ -26,13 +26,12 @@ lazy_static! {
pub static ref PVE_CONFIG_DIGEST_SCHEMA: Arc<Schema> =
StringSchema::new("Prevent changes if current configuration file has different SHA256 digest. This can be used to prevent concurrent modifications.")
.format(PVE_CONFIG_DIGEST_FORMAT.clone()).into();
}
pub fn router() -> Router {
let nodes = Router::new()
.subdir("localhost", node::router());
.match_all("node", node::router());
let route = Router::new()
.get(ApiMethod::new(