proxmox-backup/src/api2/config.rs

19 lines
428 B
Rust
Raw Normal View History

use proxmox::api::router::{Router, SubdirMap};
use proxmox::list_subdirs_api_method;
2018-12-08 13:44:55 +00:00
pub mod datastore;
pub mod remote;
2020-05-21 08:29:25 +00:00
pub mod sync;
pub mod verify;
2018-12-08 13:44:55 +00:00
2019-11-21 08:36:41 +00:00
const SUBDIRS: SubdirMap = &[
("datastore", &datastore::ROUTER),
("remote", &remote::ROUTER),
2020-05-21 08:29:25 +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);