feat: comment_interaction routing

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-12-16 01:26:22 +03:00
parent b988be7056
commit 04b39ba9c9
3 changed files with 188 additions and 0 deletions

View file

@ -1,4 +1,5 @@
pub mod comment;
pub mod comment_interaction;
pub mod interaction;
pub mod post;
pub mod post_interaction;
@ -37,6 +38,10 @@ pub async fn route(State(app_state): State<AppState>) -> Router {
"/post_interactions",
post_interaction::route(axum::extract::State(app_state.clone())),
)
.nest(
"/comment_interactions",
comment_interaction::route(axum::extract::State(app_state.clone())),
)
.layer(CorsLayer::permissive())
.with_state(app_state)
}