mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-29 00:56:52 +00:00
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:
parent
3de9361d12
commit
4da0705cc4
@ -7,8 +7,9 @@ use std::task::{Context, Poll};
|
|||||||
use futures::*;
|
use futures::*;
|
||||||
use hyper::{Body, Request, Response, StatusCode};
|
use hyper::{Body, Request, Response, StatusCode};
|
||||||
|
|
||||||
|
use proxmox::api::{http_err, ApiFuture};
|
||||||
|
|
||||||
use crate::tools;
|
use crate::tools;
|
||||||
use crate::api_schema::api_handler::*;
|
|
||||||
use crate::api_schema::router::*;
|
use crate::api_schema::router::*;
|
||||||
use crate::server::formatter::*;
|
use crate::server::formatter::*;
|
||||||
use crate::server::WorkerTask;
|
use crate::server::WorkerTask;
|
||||||
@ -35,7 +36,7 @@ impl <E: RpcEnvironment + Clone> H2Service<E> {
|
|||||||
if self.debug { self.worker.log(msg); }
|
if self.debug { self.worker.log(msg); }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn handle_request(&self, req: Request<Body>) -> BoxFut {
|
fn handle_request(&self, req: Request<Body>) -> ApiFuture {
|
||||||
|
|
||||||
let (parts, body) = req.into_parts();
|
let (parts, body) = req.into_parts();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user