added favicon

This commit is contained in:
Souko Hiabuto 2021-06-10 14:04:40 +02:00
parent 42851b848b
commit 8d6ad7c1ec
2 changed files with 6 additions and 0 deletions

BIN
data/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -182,6 +182,12 @@ public:
return;
}
if (request->url() == "/favicon.ico")
{
request->send(LittleFS, request->url(), "image/x-icon");
return;
}
if (request->url() == "/" || request->url() == "/index.html")
{
request->send(LittleFS, "/index.html", String(), false, processor);