Move mouse
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user