Fixed 404 errors when using littlefs

This commit is contained in:
Spacehuhn 2021-01-23 12:46:59 +01:00
parent 4bd56ff755
commit 535d2d3f95
1 changed files with 0 additions and 5 deletions

View File

@ -409,11 +409,6 @@ namespace wifi {
// ================================================================
#endif /* ifdef USE_PROGMEM_WEB_FILES */
// aggressively caching static assets
if (settings::getWebSettings().use_spiffs) {
server.serveStatic("/", LittleFS, String(ap_settings.path).c_str(), "max-age=86400");
}
server.on("/run", HTTP_GET, []() {
server.send(200, str(W_TXT), str(W_OK).c_str());
String input = server.arg("cmd");