* start creation of visualisation api contents

* removed /json part -> moved to API
* added missing update.html
This commit is contained in:
lumapu 2022-09-05 21:27:48 +02:00
parent 78a9db5767
commit 810e16df6e
8 changed files with 95 additions and 47 deletions

View file

@ -53,7 +53,6 @@ void web::setup(void) {
mWeb->on("/visualization", HTTP_ANY, std::bind(&web::showVisualization, this, std::placeholders::_1));
mWeb->on("/livedata", HTTP_ANY, std::bind(&web::showLiveData, this, std::placeholders::_1));
mWeb->on("/json", HTTP_ANY, std::bind(&web::showJson, this, std::placeholders::_1));
mWeb->on("/api1", HTTP_POST, std::bind(&web::showWebApi, this, std::placeholders::_1));
@ -413,13 +412,6 @@ void web::showLiveData(AsyncWebServerRequest *request) {
}
//-----------------------------------------------------------------------------
void web::showJson(AsyncWebServerRequest *request) {
DPRINTLN(DBG_VERBOSE, F("web::showJson"));
request->send(200, F("application/json"), mMain->getJson());
}
//-----------------------------------------------------------------------------
void web::showWebApi(AsyncWebServerRequest *request)
{