Add community muting API route
This commit is contained in:
parent
ef12a8f746
commit
c236a3b5d4
1 changed files with 2 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ use lemmy_api_common::{
|
|||
GetCommunity,
|
||||
HideCommunity,
|
||||
ListCommunities,
|
||||
MuteCommunity,
|
||||
RemoveCommunity,
|
||||
TransferCommunity,
|
||||
},
|
||||
|
|
@ -146,6 +147,7 @@ pub fn config(cfg: &mut web::ServiceConfig, rate_limit: &RateLimitCell) {
|
|||
.route("/list", web::get().to(route_get_crud::<ListCommunities>))
|
||||
.route("/follow", web::post().to(route_post::<FollowCommunity>))
|
||||
.route("/block", web::post().to(route_post::<BlockCommunity>))
|
||||
.route("/mute", web::post().to(route_post::<MuteCommunity>))
|
||||
.route(
|
||||
"/delete",
|
||||
web::post().to(route_post_crud::<DeleteCommunity>),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue