Skip to content

Commit

Permalink
Serve web.html instead of old web interface - fix
Browse files Browse the repository at this point in the history
  • Loading branch information
steff393 committed Feb 20, 2022
1 parent 77525a3 commit d339f68
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion data/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
</head>
<body>
<h1>wbec</h1>
<p>Connection<strong> <span id="state">%STATE% </span></strong></p>
<p>
<a href="/web?currLim=0"><button class="button button2">0 A</button></a>
<a href="/web?currLim=60"><button class="button">6 A</button></a>
Expand Down
2 changes: 1 addition & 1 deletion src/webServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void webServer_setup() {
});

server.on("/", HTTP_GET, [](AsyncWebServerRequest *request) {
request->send(LittleFS, F("/web.html"), String(), false, processor);
request->send(LittleFS, F("/web.html"), F("text/html"));
});

server.on("/cfg", HTTP_GET, [](AsyncWebServerRequest *request){
Expand Down

0 comments on commit d339f68

Please sign in to comment.