]> Untitled Git - lemmy.git/commitdiff
post -> register
authorasonix <asonix@asonix.dog>
Mon, 20 Apr 2020 18:05:07 +0000 (13:05 -0500)
committerasonix <asonix@asonix.dog>
Mon, 20 Apr 2020 18:05:07 +0000 (13:05 -0500)
server/src/routes/api.rs

index 629bd49da87d89a955fe4277988bc9a7aee5d1f6..74ad7239b8ac0421374fa5a4a3f0e379c76bac74 100644 (file)
@@ -43,7 +43,7 @@ pub fn config(cfg: &mut web::ServiceConfig, rate_limit: &RateLimit) {
       .service(
         web::resource("/community")
           .guard(guard::Post())
-          .wrap(rate_limit.post())
+          .wrap(rate_limit.register())
           .route(web::post().to(route_post::<CreateCommunity>)),
       )
       .service(