mirror of https://github.com/tokio-rs/axum
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 |