Fixed routing issue
This commit is contained in:
+2
-2
@@ -10,7 +10,7 @@ pub mod host {
|
|||||||
pub mod init {
|
pub mod init {
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
||||||
use axum::routing::post;
|
use axum::routing::{get, post};
|
||||||
use tower_http::timeout::TimeoutLayer;
|
use tower_http::timeout::TimeoutLayer;
|
||||||
use utoipa::OpenApi;
|
use utoipa::OpenApi;
|
||||||
|
|
||||||
@@ -91,7 +91,7 @@ pub mod init {
|
|||||||
)
|
)
|
||||||
.route(
|
.route(
|
||||||
crate::caller::endpoints::GET_CONTACT,
|
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>,
|
crate::auth::auth::<axum::body::Body>,
|
||||||
)),
|
)),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user