Skip to content

Commit

Permalink
Allow disabling editor:
Browse files Browse the repository at this point in the history
  • Loading branch information
lbussy committed Feb 20, 2021
1 parent 7fad230 commit 1dc9ffb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -736,9 +736,9 @@ bool handleThingSpeakTargetPost(AsyncWebServerRequest *request) // Handle ThingS
}
}

#ifdef SPIFFSEDIT
void setEditor()
{
#ifdef SPIFFSEDIT
// Setup SPIFFS editor
#ifdef ESP32
server.addHandler(new SPIFFSEditor(SPIFFS, SPIFFSEDITUSER, SPIFFSEDITPW));
Expand All @@ -748,8 +748,8 @@ void setEditor()
server.on("/edit/", HTTP_GET, [](AsyncWebServerRequest *request) {
request->redirect("/edit");
});
}
#endif
}

void stopWebServer()
{
Expand Down

0 comments on commit 1dc9ffb

Please sign in to comment.