use fetch and update js and add some buttons for webpage
This commit is contained in:
@@ -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