From c9968818a47dfc8ffb9c21c9a2c195002b08f617 Mon Sep 17 00:00:00 2001 From: phoenix Date: Wed, 17 Jun 2026 14:44:30 -0400 Subject: [PATCH] Making endpoint available --- src/config/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/config/mod.rs b/src/config/mod.rs index f8a03e9..f795269 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -111,6 +111,12 @@ pub mod init { crate::auth::auth::, )), ) + .route( + crate::caller::endpoints::GET_MESSAGE, + post(message_endpoints::get_messages).route_layer(axum::middleware::from_fn( + crate::auth::auth::, + )), + ) .layer(cors::configure_cors().await) }