proxmox-backup/src/api2/node.rs

27 lines
596 B
Rust
Raw Normal View History

use proxmox::api::router::{Router, SubdirMap};
use proxmox::list_subdirs_api_method;
pub mod tasks;
mod time;
mod network;
pub mod dns;
mod syslog;
mod journal;
mod services;
mod status;
2019-11-21 08:36:41 +00:00
pub const SUBDIRS: SubdirMap = &[
("dns", &dns::ROUTER),
("journal", &journal::ROUTER),
2019-11-21 08:36:41 +00:00
("network", &network::ROUTER),
("services", &services::ROUTER),
("status", &status::ROUTER),
2019-11-21 08:36:41 +00:00
("syslog", &syslog::ROUTER),
("tasks", &tasks::ROUTER),
("time", &time::ROUTER),
];
pub const ROUTER: Router = Router::new()
.get(&list_subdirs_api_method!(SUBDIRS))
.subdirs(SUBDIRS);