diff --git a/src/config/mod.rs b/src/config/mod.rs index ab9f851..ebded9a 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -10,7 +10,7 @@ pub mod host { pub mod init { use std::time::Duration; - use axum::routing::post; + use axum::routing::{get, post}; use tower_http::timeout::TimeoutLayer; use utoipa::OpenApi; @@ -91,7 +91,7 @@ pub mod init { ) .route( crate::caller::endpoints::GET_CONTACT, - post(contact_endpoints::get_contacts).route_layer(axum::middleware::from_fn( + get(contact_endpoints::get_contacts).route_layer(axum::middleware::from_fn( crate::auth::auth::, )), )