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;
|
2020-04-25 15:00:38 +00:00
|
|
|
pub 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;
|
2020-07-21 11:41:06 +00:00
|
|
|
mod subscription;
|
2020-06-10 10:02:57 +00:00
|
|
|
pub(crate) mod rrd;
|
2020-06-06 12:43:36 +00:00
|
|
|
pub mod disks;
|
2019-01-23 12:05:32 +00:00
|
|
|
|
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),
|
2019-12-17 13:06:48 +00:00
|
|
|
("journal", &journal::ROUTER),
|
2019-11-21 08:36:41 +00:00
|
|
|
("network", &network::ROUTER),
|
2020-05-23 09:10:02 +00:00
|
|
|
("rrd", &rrd::ROUTER),
|
2019-11-21 08:36:41 +00:00
|
|
|
("services", &services::ROUTER),
|
2019-12-18 16:24:04 +00:00
|
|
|
("status", &status::ROUTER),
|
2020-07-21 11:41:06 +00:00
|
|
|
("subscription", &subscription::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);
|