]> Untitled Git - lemmy.git/blobdiff - src/api_routes.rs
Hide community v2 (#2055)
[lemmy.git] / src / api_routes.rs
index 69bfe50bf76886a51841480403c3c1e78405dc23..1af9f028f19766d01d170e9b173f3c8d35e02a0f 100644 (file)
@@ -49,6 +49,7 @@ pub fn config(cfg: &mut web::ServiceConfig, rate_limit: &RateLimit) {
           .wrap(rate_limit.message())
           .route("", web::get().to(route_get_crud::<GetCommunity>))
           .route("", web::put().to(route_post_crud::<EditCommunity>))
+          .route("/hide", web::put().to(route_post_crud::<HideCommunity>))
           .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>))