Making endpoint available
This commit is contained in:
@@ -183,6 +183,12 @@ pub mod init {
|
|||||||
axum::middleware::from_fn(crate::auth::auth::<axum::body::Body>),
|
axum::middleware::from_fn(crate::auth::auth::<axum::body::Body>),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
.route(
|
||||||
|
crate::caller::endpoints::INSTANT_MESSAGE,
|
||||||
|
post(crate::caller::instant::endpoint::send_message).route_layer(
|
||||||
|
axum::middleware::from_fn(crate::auth::auth::<axum::body::Body>),
|
||||||
|
),
|
||||||
|
)
|
||||||
.layer(cors::configure_cors().await)
|
.layer(cors::configure_cors().await)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user