Reorganize method routers for handlers and services (#405)

* Re-organize method routing for handlers

* Re-organize method routing for services

* changelog
This commit is contained in:
David Pedersen
2021-10-24 20:05:16 +00:00
committed by GitHub
parent 0ee7379d4f
commit 7692baf837
57 changed files with 743 additions and 742 deletions
+4 -1
View File
@@ -4,7 +4,10 @@
//! cargo run -p example-static-file-server
//! ```
use axum::{error_handling::HandleErrorExt, http::StatusCode, service, Router};
use axum::{
error_handling::HandleErrorExt, http::StatusCode, routing::service_method_router as service,
Router,
};
use std::net::SocketAddr;
use tower_http::{services::ServeDir, trace::TraceLayer};