]> git.proxmox.com Git - proxmox-backup.git/blame - src/api2/config.rs
d/control: add ',' after qrencode dependency
[proxmox-backup.git] / src / api2 / config.rs
CommitLineData
3d482025 1use proxmox::api::router::{Router, SubdirMap};
9ea4bce4 2use proxmox::list_subdirs_api_method;
6ce50400 3
ea0b8b6e 4pub mod datastore;
f357390c 5pub mod remote;
6f652b1b 6pub mod sync;
6ce50400 7
255f378a 8const SUBDIRS: SubdirMap = &[
141304d6 9 ("datastore", &datastore::ROUTER),
f357390c 10 ("remote", &remote::ROUTER),
6f652b1b 11 ("sync", &sync::ROUTER),
255f378a
DM
12];
13
14pub const ROUTER: Router = Router::new()
15 .get(&list_subdirs_api_method!(SUBDIRS))
16 .subdirs(SUBDIRS);