feat: ✨ routing routing
This commit is contained in:
parent
502334ea79
commit
511e05bd54
8 changed files with 192 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue