fix error in event log

This commit is contained in:
Proddy
2024-02-12 14:51:10 +01:00
parent a8a875f9d5
commit 644907e58b

View File

@@ -26,7 +26,7 @@ WebLogService::WebLogService(AsyncWebServer * server, SecurityManager * security
events_.setFilter(securityManager->filterRequest(AuthenticationPredicates::IS_ADMIN)); events_.setFilter(securityManager->filterRequest(AuthenticationPredicates::IS_ADMIN));
// get settings // get settings
server->on(LOG_SETTINGS_PATH, HTTP_POST, [this](AsyncWebServerRequest * request) { getValues(request); }); server->on(LOG_SETTINGS_PATH, HTTP_GET, [this](AsyncWebServerRequest * request) { getValues(request); });
// for bring back the whole log - is a command, hence a POST // for bring back the whole log - is a command, hence a POST
server->on(FETCH_LOG_PATH, HTTP_POST, [this](AsyncWebServerRequest * request) { fetchLog(request); }); server->on(FETCH_LOG_PATH, HTTP_POST, [this](AsyncWebServerRequest * request) { fetchLog(request); });