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