🪄 Formats RestartService

This commit is contained in:
Rune Harlyk
2024-07-09 20:06:04 +02:00
committed by Rune Harlyk
parent c47a7bc02f
commit 33e1a28223
2 changed files with 9 additions and 16 deletions
+4 -6
View File
@@ -22,21 +22,19 @@
#define RESTART_SERVICE_PATH "/api/restart"
class RestartService
{
public:
class RestartService {
public:
RestartService(PsychicHttpServer *server, SecurityManager *securityManager);
void begin();
static void restartNow()
{
static void restartNow() {
WiFi.disconnect(true);
delay(500);
ESP.restart();
}
private:
private:
PsychicHttpServer *_server;
SecurityManager *_securityManager;
esp_err_t restart(PsychicRequest *request);