feat: routing routing

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-12-23 03:00:52 +03:00
parent 502334ea79
commit 511e05bd54
8 changed files with 192 additions and 0 deletions

View file

@ -7,6 +7,7 @@ pub mod post;
pub mod post_interaction;
pub mod role;
pub mod role_permission;
pub mod routing;
pub mod user;
pub mod user_contact;
@ -58,6 +59,10 @@ pub async fn route(State(app_state): State<AppState>) -> Router {
"/user_contacts",
user_contact::route(axum::extract::State(app_state.clone())),
)
.nest(
"/routings",
routing::route(axum::extract::State(app_state.clone())),
)
.layer(CorsLayer::permissive())
.with_state(app_state)
}