Version can only be fetched for ESP32 and path needs to not be path inside existing /json

This commit is contained in:
Will Tatam
2025-09-03 21:28:48 +01:00
parent 8f06cdaaac
commit 4d06700d77

View File

@@ -389,12 +389,12 @@ void initServer()
createEditHandler(correctPIN);
// Bootloader info endpoint for troubleshooting
server.on("/json/bootloader", HTTP_GET, [](AsyncWebServerRequest *request){
server.on("/bootloader", HTTP_GET, [](AsyncWebServerRequest *request){
AsyncJsonResponse *response = new AsyncJsonResponse(128);
JsonObject root = response->getRoot();
root[F("version")] = getBootloaderVersion();
#ifdef ESP32
root[F("version")] = getBootloaderVersion();
#ifndef WLED_DISABLE_OTA
root[F("rollback_capable")] = Update.canRollBack();
#else