mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
move the Get* endpoints to their right service classes
This commit is contained in:
@@ -22,8 +22,10 @@
|
||||
#include "../default_settings.h"
|
||||
|
||||
#define EMSESP_SETTINGS_FILE "/config/emsespSettings.json"
|
||||
|
||||
#define EMSESP_SETTINGS_SERVICE_PATH "/rest/settings"
|
||||
#define EMSESP_BOARD_PROFILE_SERVICE_PATH "/rest/boardProfile"
|
||||
#define EMSESP_GET_SETTINGS_PATH "/rest/getSettings"
|
||||
|
||||
namespace emsesp {
|
||||
|
||||
@@ -134,6 +136,7 @@ class WebSettingsService : public StatefulService<WebSettings> {
|
||||
FSPersistence<WebSettings> _fsPersistence;
|
||||
|
||||
void board_profile(AsyncWebServerRequest * request);
|
||||
void getSettings(AsyncWebServerRequest * request);
|
||||
|
||||
void onUpdate();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user