allow not only commands in api

This commit is contained in:
MichaelDvP
2021-05-05 08:04:06 +02:00
parent e9068e702e
commit 32f477726b

View File

@@ -173,10 +173,6 @@ void WebAPIService::parse(AsyncWebServerRequest * request, std::string & device_
if (cmd_s.empty()) { if (cmd_s.empty()) {
cmd_s = "info"; cmd_s = "info";
} }
if (Command::find_command(device_type, cmd_s.c_str()) == nullptr) {
send_message_response(request, 422, "Invalid cmd"); // Unprocessable Entity
return;
}
// check that we have permissions first. We require authenticating on 1 or more of these conditions: // check that we have permissions first. We require authenticating on 1 or more of these conditions:
// 1. any HTTP POSTs or PUTs // 1. any HTTP POSTs or PUTs