feat: expose possible values

This commit is contained in:
2025-08-28 10:58:43 +02:00
parent 861a36bac5
commit a4c356df93
3 changed files with 10 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") } });
}, std::vector<ApiServer::ParamSpec>{ ApiServer::ParamSpec{ String("state"), true, String("body"), String("string"), { String("on"), String("off"), String("toggle") } } });
}
void turnOn() {