basic web config

This commit is contained in:
2018-08-29 09:57:58 +02:00
parent 52fdf0e5e0
commit 74e9b8df4f
6 changed files with 45 additions and 22 deletions

View File

@@ -25,6 +25,8 @@ class WebServerPlugin : public Plugin {
//connectUpdateNetwork(network);
net = static_cast<MeshNet*>(network);
server->serveStatic(config.contextPath, SPIFFS, config.docRoot).setDefaultFile(config.defaultFile);
// TODO add auth if configured
// server->setAuthentication("user", "pass");
server->begin();
Serial.println("WebServer activated");
}