mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
move uploadURL as an action
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
#include <array>
|
||||
|
||||
#define UPLOAD_FILE_PATH "/rest/uploadFile"
|
||||
#define UPLOAD_URL_PATH "/rest/uploadURL"
|
||||
|
||||
#define TEMP_FILENAME_PATH "/tmp_upload" // for uploaded json files
|
||||
|
||||
@@ -28,7 +27,6 @@ class UploadFileService {
|
||||
void handleUpload(AsyncWebServerRequest * request, const String & filename, size_t index, uint8_t * data, size_t len, bool final);
|
||||
void uploadComplete(AsyncWebServerRequest * request);
|
||||
void handleError(AsyncWebServerRequest * request, int code);
|
||||
void uploadURL(AsyncWebServerRequest * request, JsonVariant json);
|
||||
|
||||
void handleEarlyDisconnect();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user