Move middleware::from_fn into axum (#719)

* Move `middleware::from_fn` into axum

* changelog

* fix feature

* Rephrase changelog a bit
This commit is contained in:
David Pedersen
2022-02-22 13:33:10 +01:00
parent 340948c337
commit 6d821d2a23
11 changed files with 48 additions and 36 deletions
+1 -1
View File
@@ -7,11 +7,11 @@
use axum::{
body::{Body, Bytes},
http::{Request, StatusCode},
middleware::{self, Next},
response::{IntoResponse, Response},
routing::post,
Router,
};
use axum_extra::middleware::{self, Next};
use std::net::SocketAddr;
#[tokio::main]