mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-27 23:10:20 +01:00
ca4d9a2bb9
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); ``` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |