2019-11-21 13:14:54 +00:00
|
|
|
use proxmox::api::router::{Router, SubdirMap};
|
|
|
|
use proxmox::api::list_subdirs_api_method;
|
2018-12-08 13:44:55 +00:00
|
|
|
|
2018-12-09 10:59:32 +00:00
|
|
|
pub mod datastore;
|
2020-01-16 13:32:06 +00:00
|
|
|
pub mod remote;
|
2018-12-08 13:44:55 +00:00
|
|
|
|
2019-11-21 08:36:41 +00:00
|
|
|
const SUBDIRS: SubdirMap = &[
|
2020-01-10 12:28:15 +00:00
|
|
|
("datastore", &datastore::ROUTER),
|
2020-01-16 13:32:06 +00:00
|
|
|
("remote", &remote::ROUTER),
|
2019-11-21 08:36:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pub const ROUTER: Router = Router::new()
|
|
|
|
.get(&list_subdirs_api_method!(SUBDIRS))
|
|
|
|
.subdirs(SUBDIRS);
|