proxmox-backup/src/api2/tape/mod.rs

18 lines
394 B
Rust
Raw Normal View History

use proxmox::api::router::SubdirMap;
use proxmox::api::Router;
use proxmox::list_subdirs_api_method;
pub mod drive;
pub mod changer;
2020-12-14 06:55:57 +00:00
pub mod media;
pub const SUBDIRS: SubdirMap = &[
("changer", &changer::ROUTER),
("drive", &drive::ROUTER),
2020-12-14 06:55:57 +00:00
("media", &media::ROUTER),
];
pub const ROUTER: Router = Router::new()
.get(&list_subdirs_api_method!(SUBDIRS))
.subdirs(SUBDIRS);