diff --git a/src/http_server.cpp b/src/http_server.cpp index 6846230..3efdaec 100644 --- a/src/http_server.cpp +++ b/src/http_server.cpp @@ -42,7 +42,7 @@ void http_server_setup() { PGM_P text_plain = PSTR("text/plain"); http_server.on("/", HTTP_GET, [&](){ LOGln("HTTP * GET /"); - String message = "
Known animations:
"; + String message = "Known animations:
"; if (!SPIFFS.begin()) { message += "No SPIFFS file system found."; } else { @@ -76,13 +76,23 @@ void http_server_setup() { } String name = http_server.arg("key"); uint16_t value = http_server.arg("value").toInt(); - + if (change_setting(name.c_str(), value)) { http_server.send(200, "text/plain", "OK"); } else { http_server.send(400, "text/plain", "Could not change setting."); } }); + http_server.on("/effects", HTTP_GET, [&]() { + String message = ""; + message += effects[i].name; + message += " | "; + } + message += "