formatting

This commit is contained in:
proddy
2024-11-21 14:57:27 +01:00
parent 3402b6d2dd
commit fe5cab66fb
3 changed files with 8 additions and 8 deletions

View File

@@ -33,7 +33,7 @@ WebAPIService::WebAPIService(AsyncWebServer * server, SecurityManager * security
// POST|GET api/{device}/{entity}
void WebAPIService::webAPIService(AsyncWebServerRequest * request, JsonVariant json) {
JsonDocument input_doc; // has no body JSON so create dummy as empty input object
JsonObject input;
JsonObject input;
// if no body then treat it as a secure GET
if ((request->method() == HTTP_GET) || (!json.is<JsonObject>())) {
// HTTP GET