Get Message Event Response endpoint #23

Merged
phoenix merged 7 commits from get_mer-endpoint into alot_of_changes 2026-06-20 15:05:21 -04:00
2 changed files with 9 additions and 1 deletions
Showing only changes of commit 044d5cdc50 - Show all commits
+3 -1
View File
@@ -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>,
+6
View File
@@ -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)
}