mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-28 07:20:12 +01:00
Add scope doc alias for Router::nest (#2756)
This commit is contained in:
parent
0a92e31a50
commit
80afd9253d
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue