2023-11-07 00:11:12 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "ESPAsyncWebServer.h"
|
|
|
|
#include <ArduinoJson.h>
|
2023-11-07 20:26:15 +00:00
|
|
|
#include <LittleFS.h>
|
2023-11-07 00:11:12 +00:00
|
|
|
|
|
|
|
#include "lib/block_notify.hpp"
|
|
|
|
#include "lib/price_notify.hpp"
|
2023-11-07 20:26:15 +00:00
|
|
|
#include "lib/screen_handler.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
#include "webserver/OneParamRewrite.hpp"
|
2023-11-07 00:11:12 +00:00
|
|
|
|
|
|
|
void setupWebserver();
|
2023-11-07 20:26:15 +00:00
|
|
|
bool processEpdColorSettings(AsyncWebServerRequest *request);
|
|
|
|
|
|
|
|
void onApiStatus(AsyncWebServerRequest *request);
|
|
|
|
void onApiSystemStatus(AsyncWebServerRequest *request);
|
|
|
|
|
|
|
|
void onApiShowScreen(AsyncWebServerRequest *request);
|
|
|
|
void onApiShowText(AsyncWebServerRequest *request);
|
|
|
|
|
|
|
|
void onApiActionPause(AsyncWebServerRequest *request);
|
|
|
|
void onApiActionTimerRestart(AsyncWebServerRequest *request);
|
|
|
|
void onApiSettingsGet(AsyncWebServerRequest *request);
|
|
|
|
void onApiSettingsPost(AsyncWebServerRequest *request);
|
|
|
|
|
|
|
|
void onApiRestart(AsyncWebServerRequest *request);
|
|
|
|
|
|
|
|
void onIndex(AsyncWebServerRequest *request);
|
2023-11-07 00:11:12 +00:00
|
|
|
void onNotFound(AsyncWebServerRequest *request);
|