proxmox-backup/src/api2/mod.rs

36 lines
794 B
Rust
Raw Normal View History

//! The Proxmox Backup Server API
pub mod access;
2019-01-22 12:56:27 +00:00
pub mod admin;
pub mod backup;
pub mod config;
pub mod node;
pub mod reader;
pub mod status;
pub mod types;
pub mod version;
pub mod ping;
pub mod pull;
pub mod tape;
pub mod helpers;
2019-01-22 12:56:27 +00:00
use proxmox_router::{list_subdirs_api_method, Router, SubdirMap};
2019-01-25 09:15:32 +00:00
const SUBDIRS: SubdirMap = &[
2019-11-21 08:36:41 +00:00
("access", &access::ROUTER),
("admin", &admin::ROUTER),
("backup", &backup::ROUTER),
("config", &config::ROUTER),
("nodes", &node::ROUTER),
("ping", &ping::ROUTER),
("pull", &pull::ROUTER),
2019-11-21 08:36:41 +00:00
("reader", &reader::ROUTER),
("status", &status::ROUTER),
("tape", &tape::ROUTER),
2019-11-21 08:36:41 +00:00
("version", &version::ROUTER),
];
2019-01-22 12:56:27 +00:00
2019-11-21 08:36:41 +00:00
pub const ROUTER: Router = Router::new()
.get(&list_subdirs_api_method!(SUBDIRS))
.subdirs(SUBDIRS);