15 lines
330 B
Rust
15 lines
330 B
Rust
use proxmox::api::router::{Router, SubdirMap};
|
|
use proxmox::list_subdirs_api_method;
|
|
|
|
pub mod datastore;
|
|
pub mod sync;
|
|
|
|
const SUBDIRS: SubdirMap = &[
|
|
("datastore", &datastore::ROUTER),
|
|
("sync", &sync::ROUTER)
|
|
];
|
|
|
|
pub const ROUTER: Router = Router::new()
|
|
.get(&list_subdirs_api_method!(SUBDIRS))
|
|
.subdirs(SUBDIRS);
|