a670b99db1
Currently there's not yet a node config and the WA config is somewhat "tightly coupled" to the user entries in that changing it can lock them all out, so for now I opted for fewer reorganization and just use a digest of the canonicalized config here, and keep it all in the tfa.json file. Experimentally using the flatten feature on the methods with an`Updater` struct similar to what the api macro is supposed to be able to derive on its own in the future. Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
27 lines
637 B
Rust
27 lines
637 B
Rust
use proxmox::api::router::{Router, SubdirMap};
|
|
use proxmox::list_subdirs_api_method;
|
|
|
|
pub mod access;
|
|
pub mod datastore;
|
|
pub mod remote;
|
|
pub mod sync;
|
|
pub mod verify;
|
|
pub mod drive;
|
|
pub mod changer;
|
|
pub mod media_pool;
|
|
|
|
const SUBDIRS: SubdirMap = &[
|
|
("access", &access::ROUTER),
|
|
("changer", &changer::ROUTER),
|
|
("datastore", &datastore::ROUTER),
|
|
("drive", &drive::ROUTER),
|
|
("media-pool", &media_pool::ROUTER),
|
|
("remote", &remote::ROUTER),
|
|
("sync", &sync::ROUTER),
|
|
("verify", &verify::ROUTER),
|
|
];
|
|
|
|
pub const ROUTER: Router = Router::new()
|
|
.get(&list_subdirs_api_method!(SUBDIRS))
|
|
.subdirs(SUBDIRS);
|