Skip to content

Commit

Permalink
Remove not required AsyncEventSource
Browse files Browse the repository at this point in the history
  • Loading branch information
tbnobody committed Dec 7, 2023
1 parent 8b5d406 commit b937532
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion include/WebApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class WebApiClass {
Task _loopTask;

AsyncWebServer _server;
AsyncEventSource _events;

WebApiConfigClass _webApiConfig;
WebApiDeviceClass _webApiDevice;
Expand Down
3 changes: 0 additions & 3 deletions src/WebApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b937532

Please sign in to comment.