Get Message Event Response endpoint #23
@@ -119,7 +119,9 @@ pub mod endpoint {
|
||||
)]
|
||||
pub async fn get_record_message_event_response(
|
||||
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::Json<super::response::GetMERResponse>,
|
||||
|
||||
@@ -177,6 +177,12 @@ pub mod init {
|
||||
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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user