]>
Commit | Line | Data |
---|---|---|
3d482025 | 1 | use proxmox::api::router::{Router, SubdirMap}; |
9ea4bce4 | 2 | use proxmox::list_subdirs_api_method; |
6ce50400 | 3 | |
ea0b8b6e | 4 | pub mod datastore; |
f357390c | 5 | pub mod remote; |
6f652b1b | 6 | pub mod sync; |
6ce50400 | 7 | |
255f378a | 8 | const SUBDIRS: SubdirMap = &[ |
141304d6 | 9 | ("datastore", &datastore::ROUTER), |
f357390c | 10 | ("remote", &remote::ROUTER), |
6f652b1b | 11 | ("sync", &sync::ROUTER), |
255f378a DM |
12 | ]; |
13 | ||
14 | pub const ROUTER: Router = Router::new() | |
15 | .get(&list_subdirs_api_method!(SUBDIRS)) | |
16 | .subdirs(SUBDIRS); |