mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
feat(middleware): return request ID in response header (#214)
This commit is contained in:
@ -35,6 +35,7 @@ pub(crate) mod macros;
|
||||
pub mod routes;
|
||||
pub mod scheduler;
|
||||
|
||||
mod middleware;
|
||||
pub mod services;
|
||||
pub mod types;
|
||||
pub mod utils;
|
||||
@ -95,6 +96,7 @@ pub fn mk_app(
|
||||
|
||||
let mut server_app = actix_web::App::new()
|
||||
.app_data(json_cfg)
|
||||
.wrap(middleware::RequestId)
|
||||
.wrap(router_env::tracing_actix_web::TracingLogger::default())
|
||||
.wrap(ErrorHandlers::new().handler(
|
||||
StatusCode::NOT_FOUND,
|
||||
|
||||
Reference in New Issue
Block a user