mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-27 15:00:31 +01:00
Clarify change to handling multiple HTTP methods
This commit is contained in:
parent
a442920ba3
commit
420918a53a
1 changed files with 3 additions and 0 deletions
|
@ -55,6 +55,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- **fixed:** Adding a conflicting route will now cause a panic instead of silently making
|
||||
a route unreachable.
|
||||
- **fixed:** Route matching is faster as number of routes increases.
|
||||
- **breaking:** Handlers for multiple HTTP methods must be added in the same
|
||||
`Router::route` call. So `.route("/", get(get_handler).post(post_handler))` and
|
||||
_not_ `.route("/", get(get_handler)).route("/", post(post_handler))`.
|
||||
- **fixed:** Correctly handle trailing slashes in routes:
|
||||
- If a route with a trailing slash exists and a request without a trailing
|
||||
slash is received, axum will send a 301 redirection to the route with the
|
||||
|
|
Loading…
Reference in a new issue