mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-26 00:56:27 +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 | ||
templates | ||
Cargo.toml |