mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-12 01:40:52 +01:00
16 lines
338 B
C
16 lines
338 B
C
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <ESPAsyncWebServer.h>
|
||
|
|
|
||
|
|
class WebApiSecurityClass {
|
||
|
|
public:
|
||
|
|
void init(AsyncWebServer* server);
|
||
|
|
void loop();
|
||
|
|
|
||
|
|
private:
|
||
|
|
void onPasswordGet(AsyncWebServerRequest* request);
|
||
|
|
void onPasswordPost(AsyncWebServerRequest* request);
|
||
|
|
|
||
|
|
AsyncWebServer* _server;
|
||
|
|
};
|