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

@ -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);