Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tablatronix committed Nov 5, 2023
1 parent 94529cd commit 680968f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/Super/OnDemandConfigPortal/OnDemandConfigPortal.ino
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,16 @@ void bindServerCallback(){
// you can override wm route endpoints, I have not found a way to remove handlers, but this would let you disable them or add auth etc.
// wm.server->on("/info",handleNotFound);
// wm.server->on("/update",handleNotFound);
wm.server->on("/erase",handleNotFound);
wm.server->on("/erase",handleNotFound); // disable erase
}

void handleRoute(){
Serial.println("[HTTP] handle route");
Serial.println("[HTTP] handle custom route");
wm.server->send(200, "text/plain", "hello from user code");
}

void handleNotFound(){
Serial.println("[HTTP] handle route");
Serial.println("[HTTP] override handle route");
wm.handleNotFound();
}

Expand Down

0 comments on commit 680968f

Please sign in to comment.