mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-13 10:20:20 +01:00
15 lines
288 B
C
15 lines
288 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <ESPAsyncWebServer.h>
|
||
|
|
|
||
|
|
class WebApiDtuClass {
|
||
|
|
public:
|
||
|
|
void init(AsyncWebServer* server);
|
||
|
|
void loop();
|
||
|
|
|
||
|
|
private:
|
||
|
|
void onDtuAdminGet(AsyncWebServerRequest* request);
|
||
|
|
void onDtuAdminPost(AsyncWebServerRequest* request);
|
||
|
|
|
||
|
|
AsyncWebServer* _server;
|
||
|
|
};
|