// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once

#include <ESPAsyncWebServer.h>


class WebApiVedirectClass {
public:
    void init(AsyncWebServer& server);
    void loop();

private:
    void onVedirectStatus(AsyncWebServerRequest* request);
    void onVedirectAdminGet(AsyncWebServerRequest* request);
    void onVedirectAdminPost(AsyncWebServerRequest* request);

    AsyncWebServer* _server;
};