mirror of
https://github.com/tokio-rs/axum.git
synced 2025-09-27 13:00:39 +00:00

This way there is now only one way to create a router: ```rust use axum::{Router, handler::get}; let app = Router::new() .route("/foo", get(handler)) .route("/foo", get(handler)); ``` `nest` was changed in the same way: ```rust use axum::Router; let app = Router::new().nest("/foo", service); ```