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) }