Closed as not planned
Description
- I have looked for existing issues (including closed) about this
Bug Report
Version
── axum v0.6.20
│ ├── axum-core v0.3.4
│ │ ├── axum v0.6.20 (*)
├── axum v0.6.20 (*)
Platform
Linux mortifia 6.5.5-1-MANJARO #1 SMP PREEMPT_DYNAMIC Sat Sep 23 12:48:15 UTC 2023 x86_64 GNU/Linux
Description
let app = Router::new()
.route("/", get(hello_world))
.nest("/advertisement", advertisement::router())
...... (advertisement::router)
pub fn router() -> Router {
Router::new()
.route("/", get(advertisement))
.route("/:id", get(advertisement_id))
}
GET http://localhost:3000/advertisement
-> .route("/", get(advertisement))
GET http://localhost:3000/advertisement/xxxx
-> .route("/:id", get(advertisement_id))
GET http://localhost:3000/advertisement/
-> HTTP ERROR 404
// is the bug
but is the same path
expected
GET http://localhost:3000/advertisement/
-> .route("/", get(advertisement))