diff --git a/include/WebApi.h b/include/WebApi.h index b96184b30..e6d1b0cd7 100644 --- a/include/WebApi.h +++ b/include/WebApi.h @@ -40,7 +40,6 @@ class WebApiClass { Task _loopTask; AsyncWebServer _server; - AsyncEventSource _events; WebApiConfigClass _webApiConfig; WebApiDeviceClass _webApiDevice; diff --git a/src/WebApi.cpp b/src/WebApi.cpp index 2c5cc8032..37fb51424 100644 --- a/src/WebApi.cpp +++ b/src/WebApi.cpp @@ -9,14 +9,11 @@ WebApiClass::WebApiClass() : _server(HTTP_PORT) - , _events("/events") { } void WebApiClass::init(Scheduler* scheduler) { - _server.addHandler(&_events); - _webApiConfig.init(&_server); _webApiDevice.init(&_server); _webApiDevInfo.init(&_server);