mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-24 19:21:38 +01:00
Fixed 404 error when pressing refresh in webapp
This commit is contained in:
@@ -30,7 +30,6 @@ void WebApiClass::init()
|
||||
|
||||
_webApiWsLive.init(&_ws);
|
||||
|
||||
_server.onNotFound(std::bind(&WebApiClass::onNotFound, this, _1));
|
||||
_server.begin();
|
||||
}
|
||||
|
||||
@@ -51,11 +50,7 @@ void WebApiClass::loop()
|
||||
_ws.cleanupClients();
|
||||
}
|
||||
|
||||
void WebApiClass::onNotFound(AsyncWebServerRequest* request)
|
||||
{
|
||||
// Handle Unknown Request
|
||||
request->send(404, "text/plain", "404 Not Found");
|
||||
}
|
||||
|
||||
|
||||
void WebApiClass::onWebsocketEvent(AsyncWebSocket* server, AsyncWebSocketClient* client, AwsEventType type, void* arg, uint8_t* data, size_t len)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user