mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-05 06:26:46 +00:00
little test not for now
This commit is contained in:
parent
c8fcfce615
commit
660efcd10f
3 changed files with 9 additions and 10 deletions
|
|
@ -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 != "") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue