mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-27 00:00:24 +02:00
Change nested routes to see the URI with prefix stripped (#197)
This commit is contained in:
@@ -102,16 +102,6 @@ define_rejection! {
|
||||
pub struct InvalidFormContentType;
|
||||
}
|
||||
|
||||
define_rejection! {
|
||||
#[status = INTERNAL_SERVER_ERROR]
|
||||
#[body = "`NestedUri` extractor used for route that isn't nested"]
|
||||
/// Rejection type used if you try and extract [`NestedUri`] from a route that
|
||||
/// isn't nested.
|
||||
///
|
||||
/// [`NestedUri`]: crate::extract::NestedUri
|
||||
pub struct NotNested;
|
||||
}
|
||||
|
||||
/// Rejection type for [`Path`](super::Path) if the capture route
|
||||
/// param didn't have the expected type.
|
||||
#[derive(Debug)]
|
||||
|
||||
Reference in New Issue
Block a user