use fetch and update js and add some buttons for webpage

This commit is contained in:
2021-07-22 03:42:51 +02:00
parent ca938ef3dd
commit 3145949020
3 changed files with 45 additions and 28 deletions
+4 -1
View File
@@ -36,7 +36,10 @@ auto HTTPServer::start() -> bool {
}
void HTTPServer::start_apps() {
// application handler
this->on("/action=s_oben", [this]() {
// treppe->setsensor("oben")
send(200, "text/plain", "accepted");
});
this->on("/update", HTTP_POST, [this]() {
if (args()) {