proxmox-backup/src/api2/node.rs

31 lines
682 B
Rust
Raw Normal View History

use proxmox::api::router::{Router, SubdirMap};
use proxmox::list_subdirs_api_method;
pub mod tasks;
mod time;
pub mod network;
pub mod dns;
mod syslog;
mod journal;
mod services;
mod status;
mod rrd;
2020-06-06 12:43:36 +00:00
pub mod disks;
2019-11-21 08:36:41 +00:00
pub const SUBDIRS: SubdirMap = &[
2020-06-06 12:43:36 +00:00
("disks", &disks::ROUTER),
2019-11-21 08:36:41 +00:00
("dns", &dns::ROUTER),
("journal", &journal::ROUTER),
2019-11-21 08:36:41 +00:00
("network", &network::ROUTER),
("rrd", &rrd::ROUTER),
2019-11-21 08:36:41 +00:00
("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);