2021-01-22 14:53:51 +00:00
|
|
|
//! Backup Server Administration
|
|
|
|
|
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;
|
2019-01-04 09:32:27 +00:00
|
|
|
|
|
|
|
pub mod datastore;
|
2020-05-29 08:53:39 +00:00
|
|
|
pub mod sync;
|
2020-10-20 09:10:05 +00:00
|
|
|
pub mod verify;
|
2019-01-04 09:32:27 +00:00
|
|
|
|
2019-11-21 08:36:41 +00:00
|
|
|
const SUBDIRS: SubdirMap = &[
|
2020-05-29 08:53:39 +00:00
|
|
|
("datastore", &datastore::ROUTER),
|
2020-10-20 09:10:05 +00:00
|
|
|
("sync", &sync::ROUTER),
|
|
|
|
("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);
|