diff --git a/platformio.ini b/platformio.ini index 14799cf..13b8e5f 100644 --- a/platformio.ini +++ b/platformio.ini @@ -15,7 +15,7 @@ default_envs = lolin_s3_mini_213epd, lolin_s3_mini_29epd, btclock_rev_b_213epd [btclock_base] -platform = espressif32 @ ^6.6.0 +platform = espressif32 @ ^6.8.1 framework = arduino, espidf monitor_speed = 115200 monitor_filters = esp32_exception_decoder, colorize @@ -33,7 +33,7 @@ build_unflags = lib_deps = https://github.com/joltwallet/esp_littlefs.git bblanchon/ArduinoJson@^7.1.0 - mathieucarbou/ESPAsyncWebServer @ 3.2.0 + mathieucarbou/ESPAsyncWebServer @ 3.3.1 adafruit/Adafruit BusIO@^1.16.1 adafruit/Adafruit MCP23017 Arduino Library@^2.3.2 adafruit/Adafruit NeoPixel@^1.12.3 diff --git a/src/lib/webserver.cpp b/src/lib/webserver.cpp index 88c40e4..738f4f5 100644 --- a/src/lib/webserver.cpp +++ b/src/lib/webserver.cpp @@ -20,6 +20,10 @@ void setupWebserver() AsyncStaticWebHandler &staticHandler = server.serveStatic("/", LittleFS, "/").setDefaultFile("index.html"); + + server.rewrite("/convert", "/"); + server.rewrite("/api", "/"); + if (preferences.getBool("httpAuthEnabled", DEFAULT_HTTP_AUTH_ENABLED)) { staticHandler.setAuthentication(