From: eiknat <68170752+eiknat@users.noreply.github.com> Date: Tue, 15 Sep 2020 01:22:53 +0000 (-0400) Subject: routes.api: fix get_captcha endpoint (#1135) X-Git-Url: http://these/git/%7B%60/feeds/u/%7BpictshareAvatarThumbnail%28?a=commitdiff_plain;h=b69524b498983da636b3a31f5acb74fbb1f13ab4;p=lemmy.git routes.api: fix get_captcha endpoint (#1135) --- diff --git a/server/src/routes/api.rs b/server/src/routes/api.rs index dd727df9..6a97a186 100644 --- a/server/src/routes/api.rs +++ b/server/src/routes/api.rs @@ -139,7 +139,7 @@ pub fn config(cfg: &mut web::ServiceConfig, rate_limit: &RateLimit) { .route("/ban", web::post().to(route_post::)) // Account actions. I don't like that they're in /user maybe /accounts .route("/login", web::post().to(route_post::)) - .route("/get_captcha", web::get().to(route_post::)) + .route("/get_captcha", web::get().to(route_get::)) .route( "/delete_account", web::post().to(route_post::),