Bug Report
Versions:
tower-http = "0.3.5"
axum = "0.6.1"
Axum "/" route doesn't work (returns 404) with NormalizePath middleware
#[tokio::main]
async fn main() {
let app = NormalizePath::trim_trailing_slash(
Router::new()
.route("/", get(|| async { "index" }))
.route("/other", get(|| async { "other" }))
);
let addr = SocketAddr::from(([127, 0, 0, 1], 3000));
axum::Server::bind(&addr).serve(app.into_make_service()).await.expect("Failed to start axum server");
}
Bug Report
Versions:
tower-http = "0.3.5"axum = "0.6.1"Axum"/" route doesn't work (returns 404) withNormalizePathmiddleware