mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-29 19:52:40 +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); ``` |
||
---|---|---|
.. | ||
self_signed_certs | ||
src | ||
Cargo.toml |