bf78f70885
Note: API methos should be declared pub, so that they show up in the generated docu.
31 lines
761 B
Rust
31 lines
761 B
Rust
//! Backup Server Configuration
|
|
|
|
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;
|
|
pub mod tape_encryption_keys;
|
|
|
|
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),
|
|
("tape-encryption-keys", &tape_encryption_keys::ROUTER),
|
|
("verify", &verify::ROUTER),
|
|
];
|
|
|
|
pub const ROUTER: Router = Router::new()
|
|
.get(&list_subdirs_api_method!(SUBDIRS))
|
|
.subdirs(SUBDIRS);
|