feat: ✨ comment_interaction routing
This commit is contained in:
parent
b988be7056
commit
04b39ba9c9
3 changed files with 188 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue