debug: add basic routes to LilyGO isolation build
This commit is contained in:
@@ -4151,6 +4151,39 @@ void setup() {
|
||||
Serial.print("AP IP: ");
|
||||
Serial.println(WiFi.softAPIP());
|
||||
|
||||
|
||||
server.on("/", HTTP_GET, []() {
|
||||
server.send(200, "text/plain", "Overland Controller");
|
||||
});
|
||||
|
||||
server.on("/generate_204", HTTP_GET, []() {
|
||||
server.send(204, "text/plain", "");
|
||||
});
|
||||
|
||||
server.on("/gen_204", HTTP_GET, []() {
|
||||
server.send(204, "text/plain", "");
|
||||
});
|
||||
|
||||
server.on("/hotspot-detect.html", HTTP_GET, []() {
|
||||
server.send(200, "text/html", "Success");
|
||||
});
|
||||
|
||||
server.on("/library/test/success.html", HTTP_GET, []() {
|
||||
server.send(200, "text/html", "Success");
|
||||
});
|
||||
|
||||
server.on("/connecttest.txt", HTTP_GET, []() {
|
||||
server.send(200, "text/plain", "Microsoft Connect Test");
|
||||
});
|
||||
|
||||
server.on("/ncsi.txt", HTTP_GET, []() {
|
||||
server.send(200, "text/plain", "Microsoft NCSI");
|
||||
});
|
||||
|
||||
server.on(API_V1("/health"), HTTP_GET, handleHealth);
|
||||
server.on(API_V1("/capabilities"), HTTP_GET, handleCapabilities);
|
||||
|
||||
|
||||
heapCheckpoint("before:server.begin");
|
||||
server.begin();
|
||||
heapCheckpoint("after:server.begin");
|
||||
|
||||
Reference in New Issue
Block a user