9ea4bce444
The -sys, -tools and -api crate have now been merged into the proxmx crate directly. Only macro crates are separate (but still reexported by the proxmox crate in their designated locations). When we need to depend on "parts" of the crate later on we'll just have to use features. The reason is mostly that these modules had inter-dependencies which really make them not independent enough to be their own crates. Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
15 lines
337 B
Rust
15 lines
337 B
Rust
use proxmox::api::router::{Router, SubdirMap};
|
|
use proxmox::list_subdirs_api_method;
|
|
|
|
pub mod datastore;
|
|
pub mod remote;
|
|
|
|
const SUBDIRS: SubdirMap = &[
|
|
("datastore", &datastore::ROUTER),
|
|
("remote", &remote::ROUTER),
|
|
];
|
|
|
|
pub const ROUTER: Router = Router::new()
|
|
.get(&list_subdirs_api_method!(SUBDIRS))
|
|
.subdirs(SUBDIRS);
|