mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2025-12-15 23:34:07 +00:00
added /status with uptime and heap
This commit is contained in:
parent
b3e29cb7b4
commit
42ac6f90c2
3 changed files with 28 additions and 0 deletions
|
|
@ -305,6 +305,9 @@ void setup()
|
|||
server.on("/networks", HTTP_GET, [](AsyncWebServerRequest *request)
|
||||
{ onGetNetworks(request); });
|
||||
|
||||
server.on("/status", HTTP_GET, [](AsyncWebServerRequest *request)
|
||||
{ onGetStatus(request); });
|
||||
|
||||
server.onRequestBody([](AsyncWebServerRequest *request, uint8_t *data, size_t len, size_t index, size_t total)
|
||||
{
|
||||
if (request->url() == "/config" && request->method() == HTTP_PUT) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue