Move mouse

This commit is contained in:
2026-02-28 15:45:09 +00:00
parent 1d41d336ea
commit 48f0ab881d
4 changed files with 12 additions and 67 deletions

View File

@@ -4,12 +4,12 @@
#include "WebServer.h"
void handlePage(char *page) {
void handlePage(char *page, char *contentType) {
if (LittleFS.exists(page)) {
File file = LittleFS.open(page, "r");
if (file) {
String html = file.readString();
server.send(200, "text/html", html);
server.send(200, contentType, html);
file.close();
return;
}