Fixed routing issue

This commit is contained in:
2026-06-14 23:13:03 -04:00
parent b6cee8f39f
commit 0b89688efc
+2 -2
View File
@@ -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::<axum::body::Body>,
)),
)