move src/api_schema/config.rs -> src/server/config.rs

This commit is contained in:
Dietmar Maurer 2019-11-22 09:23:03 +01:00
parent 8256b0e417
commit e57e1cd82d
6 changed files with 8 additions and 6 deletions

View File

@ -8,5 +8,4 @@
//! hierarchy of API entries, and provides ways to find an API
//! definition by path.
pub mod config;
pub mod format;

View File

@ -5,7 +5,7 @@ use proxmox::tools::try_block;
use proxmox::api::RpcEnvironmentType;
//use proxmox_backup::tools;
use proxmox_backup::api_schema::config::*;
//use proxmox_backup::api_schema::config::*;
use proxmox_backup::server::rest::*;
use proxmox_backup::server;
use proxmox_backup::tools::daemon;
@ -43,7 +43,7 @@ async fn run() -> Result<(), Error> {
}
let _ = csrf_secret(); // load with lazy_static
let config = ApiConfig::new(
let config = server::ApiConfig::new(
buildcfg::JS_DIR, &proxmox_backup::api2::ROUTER, RpcEnvironmentType::PRIVILEGED);
let rest_server = RestServer::new(config);

View File

@ -12,8 +12,7 @@ use proxmox_backup::configdir;
use proxmox_backup::buildcfg;
use proxmox_backup::server;
use proxmox_backup::tools::daemon;
use proxmox_backup::api_schema::config::*;
use proxmox_backup::server::rest::*;
use proxmox_backup::server::{ApiConfig, rest::*};
use proxmox_backup::auth_helpers::*;
#[tokio::main]

View File

@ -22,6 +22,9 @@ pub use worker_task::*;
mod h2service;
pub use h2service::*;
pub mod config;
pub use config::*;
pub mod formatter;
#[macro_use]

View File

@ -23,8 +23,9 @@ use proxmox::api::schema::{parse_simple_value, verify_json_object, parse_paramet
use super::environment::RestEnvironment;
use super::formatter::*;
use super::ApiConfig;
use crate::auth_helpers::*;
use crate::api_schema::config::ApiConfig;
use crate::tools;
extern "C" { fn tzset(); }