add restart to factory partition (if there is one)

This commit is contained in:
MichaelDvP
2022-11-05 15:56:08 +01:00
parent 342cf12ae7
commit 1d4634a76c
6 changed files with 50 additions and 3 deletions

View File

@@ -8,6 +8,7 @@
#include <SecurityManager.h>
#define RESTART_SERVICE_PATH "/rest/restart"
#define PARTITION_SERVICE_PATH "/rest/partition"
class RestartService {
public:
@@ -21,6 +22,7 @@ class RestartService {
private:
void restart(AsyncWebServerRequest * request);
void partition(AsyncWebServerRequest * request);
};
#endif