proxmox-backup/src/api2/node.rs

22 lines
444 B
Rust
Raw Normal View History

2019-02-17 08:59:20 +00:00
use crate::api_schema::router::*;
mod tasks;
mod time;
mod network;
mod dns;
mod syslog;
mod services;
2019-11-21 08:36:41 +00:00
pub const SUBDIRS: SubdirMap = &[
("dns", &dns::ROUTER),
("network", &network::ROUTER),
("services", &services::ROUTER),
("syslog", &syslog::ROUTER),
("tasks", &tasks::ROUTER),
("time", &time::ROUTER),
];
pub const ROUTER: Router = Router::new()
.get(&list_subdirs_api_method!(SUBDIRS))
.subdirs(SUBDIRS);