move src/api_schema/config.rs -> src/server/config.rs
This commit is contained in:
parent
8256b0e417
commit
e57e1cd82d
@ -8,5 +8,4 @@
|
|||||||
//! hierarchy of API entries, and provides ways to find an API
|
//! hierarchy of API entries, and provides ways to find an API
|
||||||
//! definition by path.
|
//! definition by path.
|
||||||
|
|
||||||
pub mod config;
|
|
||||||
pub mod format;
|
pub mod format;
|
||||||
|
@ -5,7 +5,7 @@ use proxmox::tools::try_block;
|
|||||||
use proxmox::api::RpcEnvironmentType;
|
use proxmox::api::RpcEnvironmentType;
|
||||||
|
|
||||||
//use proxmox_backup::tools;
|
//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::rest::*;
|
||||||
use proxmox_backup::server;
|
use proxmox_backup::server;
|
||||||
use proxmox_backup::tools::daemon;
|
use proxmox_backup::tools::daemon;
|
||||||
@ -43,7 +43,7 @@ async fn run() -> Result<(), Error> {
|
|||||||
}
|
}
|
||||||
let _ = csrf_secret(); // load with lazy_static
|
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);
|
buildcfg::JS_DIR, &proxmox_backup::api2::ROUTER, RpcEnvironmentType::PRIVILEGED);
|
||||||
|
|
||||||
let rest_server = RestServer::new(config);
|
let rest_server = RestServer::new(config);
|
||||||
|
@ -12,8 +12,7 @@ use proxmox_backup::configdir;
|
|||||||
use proxmox_backup::buildcfg;
|
use proxmox_backup::buildcfg;
|
||||||
use proxmox_backup::server;
|
use proxmox_backup::server;
|
||||||
use proxmox_backup::tools::daemon;
|
use proxmox_backup::tools::daemon;
|
||||||
use proxmox_backup::api_schema::config::*;
|
use proxmox_backup::server::{ApiConfig, rest::*};
|
||||||
use proxmox_backup::server::rest::*;
|
|
||||||
use proxmox_backup::auth_helpers::*;
|
use proxmox_backup::auth_helpers::*;
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
|
@ -22,6 +22,9 @@ pub use worker_task::*;
|
|||||||
mod h2service;
|
mod h2service;
|
||||||
pub use h2service::*;
|
pub use h2service::*;
|
||||||
|
|
||||||
|
pub mod config;
|
||||||
|
pub use config::*;
|
||||||
|
|
||||||
pub mod formatter;
|
pub mod formatter;
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
@ -23,8 +23,9 @@ use proxmox::api::schema::{parse_simple_value, verify_json_object, parse_paramet
|
|||||||
|
|
||||||
use super::environment::RestEnvironment;
|
use super::environment::RestEnvironment;
|
||||||
use super::formatter::*;
|
use super::formatter::*;
|
||||||
|
use super::ApiConfig;
|
||||||
|
|
||||||
use crate::auth_helpers::*;
|
use crate::auth_helpers::*;
|
||||||
use crate::api_schema::config::ApiConfig;
|
|
||||||
use crate::tools;
|
use crate::tools;
|
||||||
|
|
||||||
extern "C" { fn tzset(); }
|
extern "C" { fn tzset(); }
|
||||||
|
Loading…
Reference in New Issue
Block a user