feat: ✨ user_contact routing
This commit is contained in:
parent
a7d246d4f7
commit
9509bd31b5
4 changed files with 184 additions and 2 deletions
|
@ -8,6 +8,7 @@ pub mod post_interaction;
|
|||
pub mod role;
|
||||
pub mod role_permission;
|
||||
pub mod user;
|
||||
pub mod user_contact;
|
||||
|
||||
use axum::{extract::State, http::StatusCode, response::IntoResponse, routing::get, Router};
|
||||
use tower_http::cors::CorsLayer;
|
||||
|
@ -53,6 +54,10 @@ pub async fn route(State(app_state): State<AppState>) -> Router {
|
|||
"/contacts",
|
||||
contact::route(axum::extract::State(app_state.clone())),
|
||||
)
|
||||
.nest(
|
||||
"/user_contacts",
|
||||
user_contact::route(axum::extract::State(app_state.clone())),
|
||||
)
|
||||
.layer(CorsLayer::permissive())
|
||||
.with_state(app_state)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue