WebServer: use /htdocs as root directory
This commit is contained in:
parent
1337a7e231
commit
8a1a17bb07
|
@ -35,7 +35,7 @@ void WebServer::serveFile(String filename, httpsserver::HTTPResponse *res)
|
|||
|
||||
void WebServer::handleRoot(httpsserver::HTTPRequest *req, httpsserver::HTTPResponse *res)
|
||||
{
|
||||
serveFile("/index.html", res);
|
||||
serveFile("/htdocs/index.html", res);
|
||||
res->setHeader("Content-Type", "text/html");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue