mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
refactor(middleware): change visibility to pub (#587)
This commit is contained in:
@ -15,7 +15,7 @@ pub(crate) mod macros;
|
||||
pub mod routes;
|
||||
pub mod scheduler;
|
||||
|
||||
mod middleware;
|
||||
pub mod middleware;
|
||||
#[cfg(feature = "openapi")]
|
||||
pub mod openapi;
|
||||
pub mod services;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/// Middleware to include request ID in response header.
|
||||
pub(crate) struct RequestId;
|
||||
pub struct RequestId;
|
||||
|
||||
impl<S, B> actix_web::dev::Transform<S, actix_web::dev::ServiceRequest> for RequestId
|
||||
where
|
||||
@ -22,7 +22,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) struct RequestIdMiddleware<S> {
|
||||
pub struct RequestIdMiddleware<S> {
|
||||
service: S,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user