mirror of
https://git.proxmox.com/git/proxmox
synced 2025-10-04 16:49:12 +00:00
move src/server/formatter.rs to proxmox-rest-server crate
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
ba04dfb9b2
commit
dc28aa1ae7
@ -5,6 +5,7 @@ use anyhow::{bail, format_err, Error};
|
|||||||
use proxmox::tools::fd::Fd;
|
use proxmox::tools::fd::Fd;
|
||||||
|
|
||||||
pub mod daemon;
|
pub mod daemon;
|
||||||
|
pub mod formatter;
|
||||||
|
|
||||||
mod environment;
|
mod environment;
|
||||||
pub use environment::*;
|
pub use environment::*;
|
||||||
|
@ -11,8 +11,9 @@ use hyper::{Body, Request, Response, StatusCode};
|
|||||||
use proxmox::api::{ApiResponseFuture, HttpError, Router, RpcEnvironment};
|
use proxmox::api::{ApiResponseFuture, HttpError, Router, RpcEnvironment};
|
||||||
use proxmox::http_err;
|
use proxmox::http_err;
|
||||||
|
|
||||||
|
use proxmox_rest_server::formatter::*;
|
||||||
|
|
||||||
use crate::tools;
|
use crate::tools;
|
||||||
use crate::server::formatter::*;
|
|
||||||
use crate::server::WorkerTask;
|
use crate::server::WorkerTask;
|
||||||
|
|
||||||
/// Hyper Service implementation to handle stateful H2 connections.
|
/// Hyper Service implementation to handle stateful H2 connections.
|
||||||
|
@ -35,8 +35,7 @@ use pbs_tools::compression::{DeflateEncoder, Level};
|
|||||||
use pbs_tools::stream::AsyncReaderStream;
|
use pbs_tools::stream::AsyncReaderStream;
|
||||||
use pbs_api_types::{Authid, Userid};
|
use pbs_api_types::{Authid, Userid};
|
||||||
use proxmox_rest_server::{ApiConfig, FileLogger, FileLogOptions, AuthError, RestEnvironment};
|
use proxmox_rest_server::{ApiConfig, FileLogger, FileLogOptions, AuthError, RestEnvironment};
|
||||||
|
use proxmox_rest_server::formatter::*;
|
||||||
use super::formatter::*;
|
|
||||||
|
|
||||||
use crate::auth_helpers::*;
|
use crate::auth_helpers::*;
|
||||||
use pbs_config::CachedUserInfo;
|
use pbs_config::CachedUserInfo;
|
||||||
|
Loading…
Reference in New Issue
Block a user