proxmox-backup/src/api2/tape/mod.rs
2020-12-31 10:26:48 +01:00

22 lines
495 B
Rust

use proxmox::api::router::SubdirMap;
use proxmox::api::Router;
use proxmox::list_subdirs_api_method;
pub mod drive;
pub mod changer;
pub mod media;
pub mod backup;
pub mod restore;
pub const SUBDIRS: SubdirMap = &[
("backup", &backup::ROUTER),
("changer", &changer::ROUTER),
("drive", &drive::ROUTER),
("media", &media::ROUTER),
("restore", &restore::ROUTER),
];
pub const ROUTER: Router = Router::new()
.get(&list_subdirs_api_method!(SUBDIRS))
.subdirs(SUBDIRS);