diff --git a/src/config/mod.rs b/src/config/mod.rs index 4d34d4c..a52ebb8 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -183,6 +183,12 @@ pub mod init { axum::middleware::from_fn(crate::auth::auth::), ), ) + .route( + crate::caller::endpoints::INSTANT_MESSAGE, + post(crate::caller::instant::endpoint::send_message).route_layer( + axum::middleware::from_fn(crate::auth::auth::), + ), + ) .layer(cors::configure_cors().await) }