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