little test not for now

This commit is contained in:
richonguzman 2023-08-29 18:09:51 -04:00
parent c8fcfce615
commit 660efcd10f
3 changed files with 9 additions and 10 deletions

View file

@ -1,7 +1,7 @@
#include <ESPAsyncWebServer.h>
#include <AsyncElegantOTA.h>
#include <AsyncTCP.h>
#include <LittleFS.h>
#include <SPIFFS.h>
#include <WiFi.h>
#include "configuration.h"
#include "station_utils.h"
@ -269,15 +269,15 @@ void startServer() {
});
server.on("/test1", HTTP_GET, [](AsyncWebServerRequest *request) {
request->send(LittleFS, "/index.html", "text/html");
request->send(SPIFFS, "/index.html", "text/html");
});
server.on("/test2", HTTP_GET, [](AsyncWebServerRequest *request) {
request->send(LittleFS, "/index2.html", "text/html");
request->send(SPIFFS, "/index2.html", "text/html");
});
server.on("/testx", HTTP_GET, [](AsyncWebServerRequest *request) {
request->send(LittleFS, "/testx.html", "text/html");//"application/json");
request->send(SPIFFS, "/testx.html", "text/html");//"application/json");
});
if (Config.ota.username != "" && Config.ota.password != "") {