feature/capabilities (#1)

Reviewed-on: #1
This commit is contained in:
2025-08-28 11:17:24 +02:00
parent a9fb4252da
commit d7e98a41fa
3 changed files with 127 additions and 3 deletions

View File

@@ -59,7 +59,7 @@ public:
String json;
serializeJson(resp, json);
request->send(ok ? 200 : 400, "application/json", json);
});
}, std::vector<ApiServer::ParamSpec>{ ApiServer::ParamSpec{ String("state"), true, String("body"), String("string"), { String("on"), String("off"), String("toggle") } } });
}
void turnOn() {