2019-11-21 13:14:54 +00:00
|
|
|
use proxmox::api::router::{Router, SubdirMap};
|
2020-01-21 11:28:01 +00:00
|
|
|
use proxmox::list_subdirs_api_method;
|
2019-01-23 12:05:32 +00:00
|
|
|
|
2020-01-30 12:28:25 +00:00
|
|
|
pub mod tasks;
|
2019-01-23 12:05:32 +00:00
|
|
|
mod time;
|
|
|
|
mod network;
|
2019-12-22 16:35:06 +00:00
|
|
|
pub mod dns;
|
2019-01-25 16:17:30 +00:00
|
|
|
mod syslog;
|
2019-12-17 13:06:48 +00:00
|
|
|
mod journal;
|
2019-01-26 16:54:18 +00:00
|
|
|
mod services;
|
2019-12-18 16:24:04 +00:00
|
|
|
mod status;
|
2019-01-23 12:05:32 +00:00
|
|
|
|
2019-11-21 08:36:41 +00:00
|
|
|
pub const SUBDIRS: SubdirMap = &[
|
|
|
|
("dns", &dns::ROUTER),
|
2019-12-17 13:06:48 +00:00
|
|
|
("journal", &journal::ROUTER),
|
2019-11-21 08:36:41 +00:00
|
|
|
("network", &network::ROUTER),
|
|
|
|
("services", &services::ROUTER),
|
2019-12-18 16:24:04 +00:00
|
|
|
("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);
|