2020-12-08 14:42:50 +00:00
|
|
|
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;
|
2020-12-30 08:48:18 +00:00
|
|
|
pub mod restore;
|
2020-12-08 14:42:50 +00:00
|
|
|
|
|
|
|
pub const SUBDIRS: SubdirMap = &[
|
2020-12-18 14:32:12 +00:00
|
|
|
("backup", &backup::ROUTER),
|
2020-12-08 14:42:50 +00:00
|
|
|
("changer", &changer::ROUTER),
|
|
|
|
("drive", &drive::ROUTER),
|
2020-12-14 06:55:57 +00:00
|
|
|
("media", &media::ROUTER),
|
2020-12-08 14:42:50 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pub const ROUTER: Router = Router::new()
|
|
|
|
.get(&list_subdirs_api_method!(SUBDIRS))
|
|
|
|
.subdirs(SUBDIRS);
|