post -> register

This commit is contained in:
asonix 2020-04-20 13:05:07 -05:00
parent 63b2bde448
commit 63f4283017

View 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(