add mini static graph, no data, and not working with file anymore. Otherwise good

This commit is contained in:
2021-06-25 09:14:06 +03:00
parent d3cd83acc1
commit 345a5ff8bc
3 changed files with 35 additions and 1 deletions

View File

@ -25,7 +25,7 @@ String getContentType(String filename){
bool handleFileRead(String path ){
DBG_OUTPUT_PORT.println("handleFileRead: " + path);
if(path.endsWith("/")) path += "index.htm";
if(path.endsWith("/")) path += "index.html";
String contentType = getContentType(path);
String pathWithGz = path + ".gz";
if(LittleFS.exists(pathWithGz) || LittleFS.exists(path)){