refactor(backend): remove redundant main_response_mapper middleware
This commit is contained in:
@@ -87,7 +87,6 @@ async fn main() -> Result<()> {
|
||||
.nest("/api/auth", routes_auth)
|
||||
.merge(routes_health())
|
||||
.layer(TraceLayer::new_for_http())
|
||||
.layer(middleware::map_response(main_response_mapper))
|
||||
.layer(middleware::from_fn_with_state(
|
||||
user_repository,
|
||||
mw_ctx_resolver,
|
||||
@@ -116,7 +115,3 @@ async fn main() -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
async fn main_response_mapper(res: Response) -> Response {
|
||||
info!("response mapper: {}", res.status());
|
||||
res
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user