From 0b89688efcd334a30c849e0cff95644a10e3799d Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 23:13:03 -0400 Subject: [PATCH] Fixed routing issue --- src/config/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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::, )), )