2021-01-27 08:58:16 +00:00
|
|
|
//! The Proxmox Backup Server API
|
|
|
|
|
2020-04-09 08:19:38 +00:00
|
|
|
pub mod access;
|
2019-01-22 12:56:27 +00:00
|
|
|
pub mod admin;
|
2019-06-05 05:23:21 +00:00
|
|
|
pub mod backup;
|
2019-11-21 13:14:54 +00:00
|
|
|
pub mod config;
|
2019-01-23 12:05:32 +00:00
|
|
|
pub mod node;
|
2019-11-21 13:14:54 +00:00
|
|
|
pub mod reader;
|
2020-06-09 08:01:12 +00:00
|
|
|
pub mod status;
|
2019-11-21 13:14:54 +00:00
|
|
|
pub mod types;
|
|
|
|
pub mod version;
|
2020-10-02 11:12:18 +00:00
|
|
|
pub mod ping;
|
2020-01-10 10:09:55 +00:00
|
|
|
pub mod pull;
|
2020-12-08 14:42:50 +00:00
|
|
|
pub mod tape;
|
2021-03-31 10:21:48 +00:00
|
|
|
pub mod helpers;
|
2019-01-22 12:56:27 +00:00
|
|
|
|
2021-10-08 09:19:37 +00:00
|
|
|
use proxmox_router::{list_subdirs_api_method, Router, SubdirMap};
|
2019-01-25 09:15:32 +00:00
|
|
|
|
2021-01-27 08:58:16 +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),
|
2021-09-09 13:48:19 +00:00
|
|
|
("nodes", &node::ROUTER),
|
2020-10-02 11:12:18 +00:00
|
|
|
("ping", &ping::ROUTER),
|
2020-01-10 10:09:55 +00:00
|
|
|
("pull", &pull::ROUTER),
|
2019-11-21 08:36:41 +00:00
|
|
|
("reader", &reader::ROUTER),
|
2020-06-09 08:01:13 +00:00
|
|
|
("status", &status::ROUTER),
|
2020-12-08 14:42:50 +00:00
|
|
|
("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);
|