27 lines
600 B
Rust
27 lines
600 B
Rust
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;
|
|
|
|
pub const SUBDIRS: SubdirMap = &[
|
|
("dns", &dns::ROUTER),
|
|
("journal", &journal::ROUTER),
|
|
("network", &network::ROUTER),
|
|
("services", &services::ROUTER),
|
|
("status", &status::ROUTER),
|
|
("syslog", &syslog::ROUTER),
|
|
("tasks", &tasks::ROUTER),
|
|
("time", &time::ROUTER),
|
|
];
|
|
|
|
pub const ROUTER: Router = Router::new()
|
|
.get(&list_subdirs_api_method!(SUBDIRS))
|
|
.subdirs(SUBDIRS);
|