From 344e8b74802fce38167252c2c0f02508a2851a83 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sat, 20 Jun 2026 15:56:26 -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 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) }