tape: expose basic tape/changer functionality at api2/tape/
This commit is contained in:
15
src/api2/tape/mod.rs
Normal file
15
src/api2/tape/mod.rs
Normal file
@ -0,0 +1,15 @@
|
||||
use proxmox::api::router::SubdirMap;
|
||||
use proxmox::api::Router;
|
||||
use proxmox::list_subdirs_api_method;
|
||||
|
||||
pub mod drive;
|
||||
pub mod changer;
|
||||
|
||||
pub const SUBDIRS: SubdirMap = &[
|
||||
("changer", &changer::ROUTER),
|
||||
("drive", &drive::ROUTER),
|
||||
];
|
||||
|
||||
pub const ROUTER: Router = Router::new()
|
||||
.get(&list_subdirs_api_method!(SUBDIRS))
|
||||
.subdirs(SUBDIRS);
|
Reference in New Issue
Block a user