From 420918a53ab37061761e62144f483a4da8f37824 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Wed, 3 Nov 2021 09:58:25 +0100 Subject: [PATCH] Clarify change to handling multiple HTTP methods --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e496a001..b94c87fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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