🔐 Removes auth from backend

This commit is contained in:
Rune Harlyk
2024-10-29 20:47:02 +01:00
parent 9923b66208
commit 1c6b9f79c5
41 changed files with 1389 additions and 2212 deletions
+2 -4
View File
@@ -35,13 +35,11 @@ String verbosePrintResetReason(int reason) {
}
}
SystemStatus::SystemStatus(PsychicHttpServer *server, SecurityManager *securityManager)
: _server(server), _securityManager(securityManager) {}
SystemStatus::SystemStatus(PsychicHttpServer *server) : _server(server) {}
void SystemStatus::begin() {
_server->on(SYSTEM_STATUS_SERVICE_PATH, HTTP_GET,
_securityManager->wrapRequest(std::bind(&SystemStatus::systemStatus, this, std::placeholders::_1),
AuthenticationPredicates::IS_AUTHENTICATED));
[this](PsychicRequest *request) { return SystemStatus::systemStatus(request); });
ESP_LOGV("SystemStatus", "Registered GET endpoint: %s", SYSTEM_STATUS_SERVICE_PATH);
}