mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-05-10 16:11:07 +00:00

And leave some compat imports in api_schema.rs to get it to build with minimal changes. Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
23 lines
500 B
Rust
23 lines
500 B
Rust
use proxmox::api::router::{Router, SubdirMap};
|
|
use proxmox::api::list_subdirs_api_method;
|
|
|
|
mod tasks;
|
|
mod time;
|
|
mod network;
|
|
mod dns;
|
|
mod syslog;
|
|
mod services;
|
|
|
|
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);
|