Making endpoint available
This commit is contained in:
@@ -119,7 +119,9 @@ pub mod endpoint {
|
|||||||
)]
|
)]
|
||||||
pub async fn get_record_message_event_response(
|
pub async fn get_record_message_event_response(
|
||||||
axum::Extension(pool): axum::Extension<sqlx::PgPool>,
|
axum::Extension(pool): axum::Extension<sqlx::PgPool>,
|
||||||
axum::extract::Query(params): axum::extract::Query<super::request::GetMessageEventResponseParams>,
|
axum::extract::Query(params): axum::extract::Query<
|
||||||
|
super::request::GetMessageEventResponseParams,
|
||||||
|
>,
|
||||||
) -> (
|
) -> (
|
||||||
axum::http::StatusCode,
|
axum::http::StatusCode,
|
||||||
axum::Json<super::response::GetMERResponse>,
|
axum::Json<super::response::GetMERResponse>,
|
||||||
|
|||||||
@@ -177,6 +177,12 @@ pub mod init {
|
|||||||
axum::middleware::from_fn(crate::auth::auth::<axum::body::Body>),
|
axum::middleware::from_fn(crate::auth::auth::<axum::body::Body>),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
.route(
|
||||||
|
crate::caller::endpoints::GET_MESSAGE_EVENT_RESPONSE,
|
||||||
|
get(event_endpoints::get_record_message_event_response).route_layer(
|
||||||
|
axum::middleware::from_fn(crate::auth::auth::<axum::body::Body>),
|
||||||
|
),
|
||||||
|
)
|
||||||
.layer(cors::configure_cors().await)
|
.layer(cors::configure_cors().await)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user