mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
siwtch info with list - #176
This commit is contained in:
@@ -63,9 +63,9 @@ void WebAPIService::parse(AsyncWebServerRequest * request, JsonObject & input) {
|
||||
bool authenticated = false;
|
||||
|
||||
if (method == HTTP_GET) {
|
||||
// special case if there is no command, then default to 'info'
|
||||
// special case if there is no command, then default to 'list' which is like info but showing short names
|
||||
if (!input.size()) {
|
||||
input["cmd"] = "info";
|
||||
input["cmd"] = "list";
|
||||
}
|
||||
} else {
|
||||
// if its a POST then check authentication
|
||||
|
||||
Reference in New Issue
Block a user