mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-06 00:00:17 +02:00
Change nested routes to see the URI with prefix stripped (#197)
This commit is contained in:
@@ -304,6 +304,11 @@
|
||||
//! # };
|
||||
//! ```
|
||||
//!
|
||||
//! Note that nested routes will not see the orignal request URI but instead
|
||||
//! have the matched prefix stripped. This is necessary for services like static
|
||||
//! file serving to work. Use [`OriginalUri`] if you need the original request
|
||||
//! URI.
|
||||
//!
|
||||
//! # Extractors
|
||||
//!
|
||||
//! An extractor is a type that implements [`FromRequest`]. Extractors is how
|
||||
@@ -747,6 +752,7 @@
|
||||
//! [examples]: https://github.com/tokio-rs/axum/tree/main/examples
|
||||
//! [`RoutingDsl::or`]: crate::routing::RoutingDsl::or
|
||||
//! [`axum::Server`]: hyper::server::Server
|
||||
//! [`OriginalUri`]: crate::extract::OriginalUri
|
||||
|
||||
#![warn(
|
||||
clippy::all,
|
||||
|
||||
Reference in New Issue
Block a user