btclock_v3/src/lib/webserver.hpp

35 lines
1 KiB
C++
Raw Normal View History

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"
2023-11-08 11:18:59 +00:00
#include "lib/led_handler.hpp"
2023-11-07 20:26:15 +00:00
#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);
2023-11-08 11:18:59 +00:00
void onApiLightsOff(AsyncWebServerRequest *request);
void onApiLightsSetColor(AsyncWebServerRequest *request);
2023-11-07 20:26:15 +00:00
void onApiRestart(AsyncWebServerRequest *request);
void onIndex(AsyncWebServerRequest *request);
2023-11-07 00:11:12 +00:00
void onNotFound(AsyncWebServerRequest *request);