mirror of
https://github.com/tokio-rs/axum.git
synced 2025-10-01 15:00:46 +00:00
Fix documentation for MethodRouter::into_make_service (#2176)
This commit is contained in:
parent
9c19c2aad1
commit
133a4dc32e
@ -636,9 +636,10 @@ impl<B> MethodRouter<(), B, Infallible>
|
|||||||
where
|
where
|
||||||
B: HttpBody + Send + 'static,
|
B: HttpBody + Send + 'static,
|
||||||
{
|
{
|
||||||
/// Convert the handler into a [`MakeService`].
|
/// Convert the router into a [`MakeService`].
|
||||||
///
|
///
|
||||||
/// This allows you to serve a single handler if you don't need any routing:
|
/// This allows you to serve a single `MethodRouter` if you don't need any
|
||||||
|
/// routing based on the path:
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// use axum::{
|
/// use axum::{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user