mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
refactor(router): make utilities public (#396)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
pub(crate) mod api_error_response;
|
||||
pub(crate) mod error_handlers;
|
||||
pub(crate) mod utils;
|
||||
pub mod api_error_response;
|
||||
pub mod error_handlers;
|
||||
pub mod utils;
|
||||
|
||||
use std::fmt::Display;
|
||||
|
||||
@ -12,8 +12,10 @@ pub use redis_interface::errors::RedisError;
|
||||
use router_env::opentelemetry::metrics::MetricsError;
|
||||
use storage_models::errors as storage_errors;
|
||||
|
||||
pub use self::api_error_response::ApiErrorResponse;
|
||||
pub(crate) use self::utils::{ConnectorErrorExt, StorageErrorExt};
|
||||
pub use self::{
|
||||
api_error_response::ApiErrorResponse,
|
||||
utils::{ConnectorErrorExt, StorageErrorExt},
|
||||
};
|
||||
use crate::services;
|
||||
pub type RouterResult<T> = CustomResult<T, ApiErrorResponse>;
|
||||
pub type RouterResponse<T> = CustomResult<services::ApplicationResponse<T>, ApiErrorResponse>;
|
||||
|
||||
Reference in New Issue
Block a user