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