PCB lives now in its own git repo https://git.la10cy.net/DeltaLima/CanGrow-12V-PCB
28 lines
615 B
C
28 lines
615 B
C
/*
|
|
*
|
|
* include/Webserver/Page_root.h - root page header file
|
|
*
|
|
*
|
|
*
|
|
*/
|
|
|
|
#include "Page_root_HTML.h"
|
|
|
|
|
|
|
|
// https://techtutorialsx.com/2018/07/23/esp32-arduino-http-server-template-processing-with-multiple-placeholders/
|
|
String Proc_WebPage_root(const String& var) {
|
|
if(TestHeaderFooter(var)) {
|
|
return AddHeaderFooter(var);
|
|
} else if(var == "LOL") {
|
|
return String("Nice");
|
|
} else if(var == "LOL") {
|
|
return String("Jojoojo :)");
|
|
} else {
|
|
return String();
|
|
}
|
|
}
|
|
|
|
void WebPage_root(AsyncWebServerRequest *request) {
|
|
request->send_P(200, TEXT_HTML, Page_root_HTML, Proc_WebPage_root);
|
|
}
|