mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 07:28:10 +01:00
Update captive portal canHandle function (#3360)
This commit is contained in:
parent
e914828add
commit
28883f711b
1 changed files with 1 additions and 11 deletions
|
@ -39,17 +39,7 @@ class CaptivePortal : public AsyncWebHandler, public Component {
|
||||||
if (request->method() == HTTP_GET) {
|
if (request->method() == HTTP_GET) {
|
||||||
if (request->url() == "/")
|
if (request->url() == "/")
|
||||||
return true;
|
return true;
|
||||||
if (request->url() == "/stylesheet.css")
|
if (request->url() == "/config.json")
|
||||||
return true;
|
|
||||||
if (request->url() == "/wifi-strength-1.svg")
|
|
||||||
return true;
|
|
||||||
if (request->url() == "/wifi-strength-2.svg")
|
|
||||||
return true;
|
|
||||||
if (request->url() == "/wifi-strength-3.svg")
|
|
||||||
return true;
|
|
||||||
if (request->url() == "/wifi-strength-4.svg")
|
|
||||||
return true;
|
|
||||||
if (request->url() == "/lock.svg")
|
|
||||||
return true;
|
return true;
|
||||||
if (request->url() == "/wifisave")
|
if (request->url() == "/wifisave")
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue