Add a framework prelude import

Signed-off-by: Erik Hollensbe <linux@hollensbe.org>
This commit is contained in:
Erik Hollensbe
2022-01-22 05:50:40 -08:00
parent 2a78682095
commit 4ebec5d058
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
use http::{Request, Response, StatusCode};
use hyper::Body;
use ratpack::{app::App, compose_handler, Error, HTTPResult, Params, ServerError};
use ratpack::prelude::*;
async fn validate_authtoken(
req: Request<Body>,
+4
View File
@@ -73,3 +73,7 @@ where
/// with [std::option::Option::None] as the [http::Response], a 500 Internal Server Error will be
/// returned.
pub type HTTPResult = Result<(Request<hyper::Body>, Option<Response<hyper::Body>>), Error>;
pub mod prelude {
pub use crate::{app::App, compose_handler, Error, HTTPResult, Params, ServerError};
}