feat: contact routing

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-12-17 02:29:41 +03:00
parent 64bf22ba68
commit a7d246d4f7
4 changed files with 149 additions and 0 deletions

View file

@ -1,5 +1,6 @@
pub mod comment;
pub mod comment_interaction;
pub mod contact;
pub mod interaction;
pub mod permission;
pub mod post;
@ -48,6 +49,10 @@ pub async fn route(State(app_state): State<AppState>) -> Router {
"/role_permissions",
role_permission::route(axum::extract::State(app_state.clone())),
)
.nest(
"/contacts",
contact::route(axum::extract::State(app_state.clone())),
)
.layer(CorsLayer::permissive())
.with_state(app_state)
}