]> git.proxmox.com Git - proxmox-backup.git/blame - src/api2/config.rs
tape: add tape device driver
[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;
9b2bad7a 7pub mod verify;
6ce50400 8
255f378a 9const SUBDIRS: SubdirMap = &[
141304d6 10 ("datastore", &datastore::ROUTER),
f357390c 11 ("remote", &remote::ROUTER),
6f652b1b 12 ("sync", &sync::ROUTER),
9b2bad7a 13 ("verify", &verify::ROUTER)
255f378a
DM
14];
15
16pub const ROUTER: Router = Router::new()
17 .get(&list_subdirs_api_method!(SUBDIRS))
18 .subdirs(SUBDIRS);