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

21 lines
460 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;
2020-12-18 14:32:12 +00:00
pub mod backup;
pub mod restore;
pub const SUBDIRS: SubdirMap = &[
2020-12-18 14:32:12 +00:00
("backup", &backup::ROUTER),
("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);