|
1234567891011121314151617 |
- #include "httpserver.h"
-
-
- bool HTTPServer::addRootFileHandler() {
-
- // //experimental, see doku.md
- // server.serveStatic("/compressed", LittleFS, "/compressed.html.gzip");
-
- this->serveStatic("", LittleFS, "/index.html");
- this->serveStatic("/", LittleFS, "/index.html");
- this->serveStatic("/#", LittleFS, "/index.html");
- this->serveStatic("/style.css", LittleFS, "/style.css");
- this->serveStatic("/input.js", LittleFS, "/input.js");
- this->serveStatic("/favicon.png", LittleFS, "/favicon.png");
-
- return true;
- }
|