mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-16 00:00:18 +02:00
Add scope doc alias for Router::nest (#2756)
This commit is contained in:
@@ -185,6 +185,7 @@ where
|
||||
}
|
||||
|
||||
#[doc = include_str!("../docs/routing/nest.md")]
|
||||
#[doc(alias = "scope")] // Some web frameworks like actix-web use this term
|
||||
#[track_caller]
|
||||
pub fn nest(self, path: &str, router: Router<S>) -> Self {
|
||||
let RouterInner {
|
||||
|
||||
Reference in New Issue
Block a user