3 #ifdef USE_CAPTIVE_PORTAL 15 namespace captive_portal {
20 void setup()
override;
40 bool canHandle(AsyncWebServerRequest *request)
override {
44 if (request->method() == HTTP_GET) {
45 if (request->url() ==
"/")
47 if (request->url() ==
"/config.json")
49 if (request->url() ==
"/wifisave")
CaptivePortal(web_server_base::WebServerBase *base)
std::unique_ptr< DNSServer > dns_server_
void handleRequest(AsyncWebServerRequest *req) override
web_server_base::WebServerBase * base_
bool canHandle(AsyncWebServerRequest *request) override
CaptivePortal * global_captive_portal
void handle_config(AsyncWebServerRequest *request)
void dump_config() override
Implementation of SPI Controller mode.
float get_setup_priority() const override
void handle_wifisave(AsyncWebServerRequest *request)