X-Git-Url: http://these/git/?a=blobdiff_plain;f=src%2Fapi_routes_http.rs;h=375630a9243fc529c7227740e600746d3e7c2d39;hb=95378785195c552a6618acb44d7ca31b084ee480;hp=a2abfa690f9b9d9b990a276528f11a175142b76e;hpb=418bca78e195a047c5abfbad7a20c2825fe749b3;p=lemmy.git diff --git a/src/api_routes_http.rs b/src/api_routes_http.rs index a2abfa69..375630a9 100644 --- a/src/api_routes_http.rs +++ b/src/api_routes_http.rs @@ -38,6 +38,7 @@ use lemmy_api_common::{ ChangePassword, DeleteAccount, GetBannedPersons, + GetCaptcha, GetPersonDetails, GetPersonMentions, GetReplies, @@ -272,6 +273,12 @@ pub fn config(cfg: &mut web::ServiceConfig, rate_limit: &RateLimitCell) { .wrap(rate_limit.register()) .route(web::post().to(route_post_crud::)), ) + .service( + // Handle captcha separately + web::resource("/user/get_captcha") + .wrap(rate_limit.post()) + .route(web::get().to(route_get::)), + ) // User actions .service( web::scope("/user")