начал добавление виджетов

This commit is contained in:
Dmitry Borisenko
2022-01-26 00:03:43 +01:00
parent ec93e1de04
commit 70edd92238
4 changed files with 32 additions and 11 deletions

View File

@@ -17,6 +17,10 @@ void standWebServerInit() {
HTTP.send(200, "application/json", readFile(F("config.json"), 10000));
});
HTTP.on("/layout.json", HTTP_GET, []() {
HTTP.send(200, "application/json", readFile(F("layout.json"), 10000));
});
HTTP.on("/restart", HTTP_GET, []() {
// ESP.restart();
HTTP.send(200, "text/plain", "ok");