fix format
This commit is contained in:
parent
bb63a284c8
commit
51303c83ae
@ -68,7 +68,6 @@ void CrossPointWebServer::begin() {
|
|||||||
// Upload endpoint with special handling for multipart form data
|
// Upload endpoint with special handling for multipart form data
|
||||||
server->on("/upload", HTTP_ANY, [this] { handleUploadPost(); }, [this] { handleUpload(); });
|
server->on("/upload", HTTP_ANY, [this] { handleUploadPost(); }, [this] { handleUpload(); });
|
||||||
|
|
||||||
|
|
||||||
// Create folder endpoint
|
// Create folder endpoint
|
||||||
server->on("/mkdir", HTTP_POST, [this] { handleCreateFolder(); });
|
server->on("/mkdir", HTTP_POST, [this] { handleCreateFolder(); });
|
||||||
|
|
||||||
@ -481,7 +480,6 @@ void CrossPointWebServer::handleDelete() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (server->method() == HTTP_POST) {
|
if (server->method() == HTTP_POST) {
|
||||||
|
|
||||||
// Get path from form data
|
// Get path from form data
|
||||||
if (!server->hasArg("path")) {
|
if (!server->hasArg("path")) {
|
||||||
server->send(400, "text/plain", "Missing path");
|
server->send(400, "text/plain", "Missing path");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user