2022-09-09 18:43:21 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <ESPAsyncWebServer.h>
|
2024-01-20 02:00:22 +01:00
|
|
|
#include <TaskSchedulerDeclarations.h>
|
2022-09-09 18:43:21 +02:00
|
|
|
|
|
|
|
|
class WebApiLimitClass {
|
|
|
|
|
public:
|
2024-01-20 02:00:22 +01:00
|
|
|
void init(AsyncWebServer& server, Scheduler& scheduler);
|
2022-09-09 18:43:21 +02:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void onLimitStatus(AsyncWebServerRequest* request);
|
2022-09-16 18:18:32 +02:00
|
|
|
void onLimitPost(AsyncWebServerRequest* request);
|
2022-09-09 18:43:21 +02:00
|
|
|
|
|
|
|
|
AsyncWebServer* _server;
|
2024-01-20 02:00:22 +01:00
|
|
|
};
|