Add community muting API route

This commit is contained in:
Kartik Singh 2023-06-20 21:48:21 +05:30
parent ef12a8f746
commit c236a3b5d4

View file

@ -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>),