mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-28 00:00:20 +02:00
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user