diff --git a/WebCfgServer.cpp b/WebCfgServer.cpp index 70e6bae..5faaae3 100644 --- a/WebCfgServer.cpp +++ b/WebCfgServer.cpp @@ -53,6 +53,14 @@ void WebCfgServer::initialize() buildMqttConfigHtml(response); _server.send(200, "text/html", response); }); + _server.on("/nukicfg", [&]() { + if (_hasCredentials && !_server.authenticate(_credUser, _credPassword)) { + return _server.requestAuthentication(); + } + String response = ""; + buildNukiConfigHtml(response); + _server.send(200, "text/html", response); + }); _server.on("/wifi", [&]() { if (_hasCredentials && !_server.authenticate(_credUser, _credPassword)) { return _server.requestAuthentication(); @@ -353,29 +361,10 @@ void WebCfgServer::buildHtml(String& response) response.concat(""); response.concat(""); - response.concat("
"); + response.concat("