siwtch info with list - #176

This commit is contained in:
proddy
2021-11-02 16:02:49 +01:00
parent 5850a82d80
commit 131b936a69
4 changed files with 17 additions and 11 deletions

View File

@@ -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