got parameter fetch working beta only

This commit is contained in:
2021-09-06 00:41:11 +02:00
parent b309c0b207
commit 6bd0844927
4 changed files with 81 additions and 28 deletions
+8
View File
@@ -94,6 +94,14 @@ void HTTPServer::start_apps() {
send(202, "text/plain", "");
}
});
this->on("/parameters", HTTP_POST, [this]() {
logt("got /parameters\n");
char json_str[255];
treppe->param_to_json(json_str, 255);
logt("%s\n", json_str);
send(200, "application/json", json_str);
});
}
template <class... Args>