mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
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:
@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user