feat: post_interaction routing

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-12-16 01:20:10 +03:00
parent 0f09dd6a82
commit b988be7056
6 changed files with 185 additions and 6 deletions

View file

@ -1,6 +1,7 @@
pub mod comment;
pub mod interaction;
pub mod post;
pub mod post_interaction;
pub mod role;
pub mod user;
@ -32,6 +33,10 @@ pub async fn route(State(app_state): State<AppState>) -> Router {
"/interactions",
interaction::route(axum::extract::State(app_state.clone())),
)
.nest(
"/post_interactions",
post_interaction::route(axum::extract::State(app_state.clone())),
)
.layer(CorsLayer::permissive())
.with_state(app_state)
}