mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-08 00:00:24 +02:00
Update routing layer documentation (#560)
This commit is contained in:
@@ -27,7 +27,7 @@ async fn second_handler() {}
|
|||||||
|
|
||||||
async fn third_handler() {}
|
async fn third_handler() {}
|
||||||
|
|
||||||
// All requests to `handler` and `other_handler` will be sent through
|
// All requests to `first_handler` and `second_handler` will be sent through
|
||||||
// `ConcurrencyLimit`
|
// `ConcurrencyLimit`
|
||||||
let app = Router::new().route("/", get(first_handler))
|
let app = Router::new().route("/", get(first_handler))
|
||||||
.route("/foo", get(second_handler))
|
.route("/foo", get(second_handler))
|
||||||
|
|||||||
Reference in New Issue
Block a user