mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-08 00:00:24 +02:00
Return 405 Method Not Allowed for unsupported method for route (#63)
Fixes https://github.com/tokio-rs/axum/issues/61
This commit is contained in:
+1
-1
@@ -676,7 +676,7 @@ where
|
||||
{
|
||||
use routing::RoutingDsl;
|
||||
|
||||
routing::EmptyRouter::new().route(description, service)
|
||||
routing::EmptyRouter::not_found().route(description, service)
|
||||
}
|
||||
|
||||
mod sealed {
|
||||
|
||||
Reference in New Issue
Block a user