mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-29 07:48:39 +01:00
Clarify nested outer fallbacks in CHANGELOG.md (#1581)
This commit is contained in:
parent
eb2e933054
commit
28f1996f9c
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
// this would panic in 0.5 but in 0.6 it just works
|
||||
//
|
||||
// requests starting with `/api` but not handled by `api_router`
|
||||
// will go to `/api_fallback`
|
||||
// will go to `api_fallback`
|
||||
.nest("/api", api_router);
|
||||
```
|
||||
|
||||
|
@ -37,7 +37,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
let app = Router::new()
|
||||
.nest("/api", api_router)
|
||||
// `api_fallback` will inherit this fallback
|
||||
// `api_router` will inherit this fallback
|
||||
.fallback(app_fallback);
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue