From b69524b498983da636b3a31f5acb74fbb1f13ab4 Mon Sep 17 00:00:00 2001 From: eiknat <68170752+eiknat@users.noreply.github.com> Date: Mon, 14 Sep 2020 21:22:53 -0400 Subject: [PATCH] routes.api: fix get_captcha endpoint (#1135) --- server/src/routes/api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/routes/api.rs b/server/src/routes/api.rs index dd727df97..6a97a186e 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::),