move api schema into proxmox::api crate

And leave some compat imports in api_schema.rs to get it to
build with minimal changes.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2019-11-21 14:14:54 +01:00
parent 552c225948
commit 3d482025b3
11 changed files with 45 additions and 1370 deletions

View File

@ -1,17 +1,18 @@
pub mod types;
pub mod config;
mod access;
pub mod admin;
pub mod backup;
pub mod reader;
pub mod config;
pub mod node;
pub mod version;
pub mod reader;
mod subscription;
mod access;
pub mod types;
pub mod version;
use crate::api_schema::router::*;
use proxmox::api::list_subdirs_api_method;
use proxmox::api::router::SubdirMap;
use proxmox::api::Router;
const NODES_ROUTER: Router = Router::new()
.match_all("node", &node::ROUTER);
const NODES_ROUTER: Router = Router::new().match_all("node", &node::ROUTER);
pub const SUBDIRS: SubdirMap = &[
("access", &access::ROUTER),