feat(router): add accept language header middleware (#5500)

Co-authored-by: Chikke Srujan <chikke.srujan@Chikke-Srujan-N7WRTY72X7.local>
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
chikke srujan
2024-08-05 12:52:29 +05:30
committed by GitHub
parent a3ad0d92d7
commit ec5f9de0cb
9 changed files with 90 additions and 8 deletions

View File

@ -341,6 +341,7 @@ pub fn get_application_builder(
.wrap(cors::cors(cors))
// this middleware works only for Http1.1 requests
.wrap(middleware::Http400RequestDetailsLogger)
.wrap(middleware::AddAcceptLanguageHeader)
.wrap(middleware::LogSpanInitializer)
.wrap(router_env::tracing_actix_web::TracingLogger::default())
}