Fixed 404 errors when using littlefs
This commit is contained in:
parent
4bd56ff755
commit
535d2d3f95
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue