src/api2/node.rs: add node parameter
This commit is contained in:
1 parent
7ae0bf52dd
commit
d8d40dd0c2
8 files changed
+52
-10
No files matched your search
+1
-2
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user