]> Untitled Git - lemmy.git/commitdiff
routes.api: fix get_captcha endpoint (#1135)
authoreiknat <68170752+eiknat@users.noreply.github.com>
Tue, 15 Sep 2020 01:22:53 +0000 (21:22 -0400)
committerGitHub <noreply@github.com>
Tue, 15 Sep 2020 01:22:53 +0000 (21:22 -0400)
server/src/routes/api.rs

index dd727df971ffc6c55bc3bdbfd891708f95113f68..6a97a186e12f5741244f5357cda880c51c6dafec 100644 (file)
@@ -139,7 +139,7 @@ pub fn config(cfg: &mut web::ServiceConfig, rate_limit: &RateLimit) {
           .route("/ban", web::post().to(route_post::<BanUser>))
           // Account actions. I don't like that they're in /user maybe /accounts
           .route("/login", web::post().to(route_post::<Login>))
-          .route("/get_captcha", web::get().to(route_post::<GetCaptcha>))
+          .route("/get_captcha", web::get().to(route_get::<GetCaptcha>))
           .route(
             "/delete_account",
             web::post().to(route_post::<DeleteAccount>),