use fetch and update js and add some buttons for webpage
This commit is contained in:
1 parent
ca938ef3dd
commit
3145949020
3 files changed
+45
-28
No files matched your search
@@ -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()) {
|
||||
|
||||
Reference in new issue
Block a user