proxmox-backup/src/api2/admin.rs

15 lines
330 B
Rust
Raw Normal View History

use proxmox::api::router::{Router, SubdirMap};
use proxmox::list_subdirs_api_method;
2019-01-04 09:32:27 +00:00
pub mod datastore;
pub mod sync;
2019-01-04 09:32:27 +00:00
2019-11-21 08:36:41 +00:00
const SUBDIRS: SubdirMap = &[
("datastore", &datastore::ROUTER),
("sync", &sync::ROUTER)
2019-11-21 08:36:41 +00:00
];
pub const ROUTER: Router = Router::new()
.get(&list_subdirs_api_method!(SUBDIRS))
.subdirs(SUBDIRS);