7#include "../UsedInterrupts.h"
9#include <ESPAsyncWebServer.h>
47 server.on(path, HTTP_GET, [contentType, filename](AsyncWebServerRequest* request) {
49 request->send(SPIFFS, filename, contentType);
static void executeWithoutInterrupts(std::function< void(void)> f)
Execute the passed function without interrupts.
Definition: UsedInterrupts.h:58
Base class for configuring the controller over WiFi.
Definition: ConfigurationServerBase.h:16
void addSpiffsFileToServer(const char *path, String contentType, const char *filename=nullptr)
Adds the file from the SPIFFS with the filename to the webserver under the given path.
Definition: ConfigurationServerBase.h:43
ConfigurationServerBase()
Construct a new Configuration Server object.
Definition: ConfigurationServerBase.h:27
AsyncWebServer server
The used asynchronous webserver.
Definition: ConfigurationServerBase.h:21
Definition: Configuration.h:16