mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-11 17:30:37 +01:00
18 lines
399 B
C++
18 lines
399 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);
|
|
|
|
void onAuthenticateGet(AsyncWebServerRequest* request);
|
|
|
|
AsyncWebServer* _server;
|
|
}; |