summaryrefslogtreecommitdiffstats
path: root/server/src
diff options
context:
space:
mode:
authorasonix <asonix@asonix.dog>2020-04-20 13:05:07 -0500
committerasonix <asonix@asonix.dog>2020-04-20 13:05:07 -0500
commitd11af012fc1ba2de7684235ef92bf5954a5dab26 (patch)
treee3c9c9b006abbbba19d5dfb244159e1ab865cf91 /server/src
parentd058db95e5d642ff79416ad6a11c2707b667517f (diff)
post -> register
Diffstat (limited to 'server/src')
-rw-r--r--server/src/routes/api.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/routes/api.rs b/server/src/routes/api.rs
index 629bd49d..74ad7239 100644
--- a/server/src/routes/api.rs
+++ b/server/src/routes/api.rs
@@ -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(