From a33010c068b5076647ea325b413a5789dc8ed78d Mon Sep 17 00:00:00 2001 From: Florian Date: Sat, 1 Aug 2026 07:30:26 -0500 Subject: [PATCH] [FIX] Restore GET route for /wi so the WiFi scan link works (#2345) handleWI() dispatches internally on the "scan" query arg, so the same handler serves both the scan link and the save form. #2037 narrowed the route to POST-only, which orphaned the scan hyperlink (a GET) in config_WebContent.h. Re-register /wi for HTTP_GET alongside HTTP_POST; the credential Save form stays method=post, so no secrets move to GET. Co-authored-by: Florian <1technophile@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 --- main/webUI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/webUI.cpp b/main/webUI.cpp index 609f847..e619ff9 100644 --- a/main/webUI.cpp +++ b/main/webUI.cpp @@ -1820,7 +1820,8 @@ void WebUISetup() { server.on("/up", handleUP); // Firmware Upgrade # endif server.on("/cn", handleCN); // Configuration - server.on("/wi", HTTP_POST, handleWI); // Configure Wifi + server.on("/wi", HTTP_GET, handleWI); // Scan for WiFi networks (GET link) + server.on("/wi", HTTP_POST, handleWI); // Configure Wifi (save form, POST) server.on("/mq", HTTP_POST, handleMQ); // Configure MQTT # ifndef ESPWifiManualSetup server.on("/cg", handleCG); // Configure gateway