2019-11-21 13:14:54 +00:00
|
|
|
use proxmox::api::router::{Router, SubdirMap};
|
2020-01-21 11:28:01 +00:00
|
|
|
use proxmox::list_subdirs_api_method;
|
2018-12-08 13:44:55 +00:00
|
|
|
|
2021-01-15 10:06:17 +00:00
|
|
|
pub mod access;
|
2018-12-09 10:59:32 +00:00
|
|
|
pub mod datastore;
|
2020-01-16 13:32:06 +00:00
|
|
|
pub mod remote;
|
2020-05-21 08:29:25 +00:00
|
|
|
pub mod sync;
|
2020-10-20 09:10:04 +00:00
|
|
|
pub mod verify;
|
2020-12-07 12:04:32 +00:00
|
|
|
pub mod drive;
|
2020-12-08 08:04:56 +00:00
|
|
|
pub mod changer;
|
2020-12-10 09:52:27 +00:00
|
|
|
pub mod media_pool;
|
2021-01-18 06:16:06 +00:00
|
|
|
pub mod tape_encryption_keys;
|
2018-12-08 13:44:55 +00:00
|
|
|
|
2019-11-21 08:36:41 +00:00
|
|
|
const SUBDIRS: SubdirMap = &[
|
2021-01-15 10:06:17 +00:00
|
|
|
("access", &access::ROUTER),
|
2020-12-08 08:04:56 +00:00
|
|
|
("changer", &changer::ROUTER),
|
2020-01-10 12:28:15 +00:00
|
|
|
("datastore", &datastore::ROUTER),
|
2020-12-07 12:04:32 +00:00
|
|
|
("drive", &drive::ROUTER),
|
2020-12-10 09:52:27 +00:00
|
|
|
("media-pool", &media_pool::ROUTER),
|
2020-01-16 13:32:06 +00:00
|
|
|
("remote", &remote::ROUTER),
|
2020-05-21 08:29:25 +00:00
|
|
|
("sync", &sync::ROUTER),
|
2021-01-18 06:16:06 +00:00
|
|
|
("tape-encryption-keys", &tape_encryption_keys::ROUTER),
|
2021-01-15 10:06:17 +00:00
|
|
|
("verify", &verify::ROUTER),
|
2019-11-21 08:36:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pub const ROUTER: Router = Router::new()
|
|
|
|
.get(&list_subdirs_api_method!(SUBDIRS))
|
|
|
|
.subdirs(SUBDIRS);
|