mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2025-05-19 10:32:56 +00:00
DMX-17 made server serve static correctly
This commit is contained in:
parent
6665df4cc6
commit
6d2386f080
1 changed files with 1 additions and 5 deletions
|
@ -97,11 +97,7 @@ void setup()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
server.on("/", HTTP_GET, [](AsyncWebServerRequest *request)
|
server.serveStatic("/", SPIFFS, "/").setDefaultFile("index.html");
|
||||||
{
|
|
||||||
Serial.println("ESP32 Web Server: New request received:"); // for debugging
|
|
||||||
Serial.println("GET /"); // for debugging
|
|
||||||
request->send(SPIFFS, "/index.html"); });
|
|
||||||
|
|
||||||
server.begin();
|
server.begin();
|
||||||
Serial.println("Server started!");
|
Serial.println("Server started!");
|
||||||
|
|
Loading…
Add table
Reference in a new issue