Dependency updates and fix URL rewrites

This commit is contained in:
Djuri 2024-09-18 02:40:24 +02:00
parent ff50acf913
commit 41bf2480ce
2 changed files with 6 additions and 2 deletions

View file

@ -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(