mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 09:47:50 +03:00
refactor(middlewares): move MiddlewareError from crate::utility to crate::middlewares
This commit is contained in:
@@ -81,7 +81,7 @@ mod middleware_error {
|
|||||||
|
|
||||||
fn error_response(&self) -> ::actix_web::HttpResponse<BoxBody> {
|
fn error_response(&self) -> ::actix_web::HttpResponse<BoxBody> {
|
||||||
::actix_web::HttpResponse::build(self.status_code())
|
::actix_web::HttpResponse::build(self.status_code())
|
||||||
.json(crate::utility::error::MiddlewareError::new(self.clone()))
|
.json(crate::middlewares::error::MiddlewareError::new(self.clone()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
|
pub mod error;
|
||||||
|
|
||||||
pub mod authorization;
|
pub mod authorization;
|
||||||
pub mod content_type;
|
pub mod content_type;
|
||||||
|
|||||||
@@ -1,4 +1,2 @@
|
|||||||
pub mod error;
|
|
||||||
pub mod hasher;
|
|
||||||
pub mod jwt;
|
pub mod jwt;
|
||||||
pub mod telegram;
|
pub mod telegram;
|
||||||
|
|||||||
Reference in New Issue
Block a user