2026-06-27 20:00:17 -05:00
|
|
|
#include "app.h"
|
|
|
|
|
#include "custom_api.h"
|
|
|
|
|
|
|
|
|
|
ApiDef customApiDefs[] = {
|
|
|
|
|
{"/api/ping", "GET", "", true, handlePing, nullptr},
|
|
|
|
|
{"/api/add", "POST", "", true, handleAdd, nullptr},
|
|
|
|
|
{"/api/led", "POST", "", true, handleLed, nullptr},
|
2026-06-28 12:34:55 -05:00
|
|
|
{"/api/uptime", "GET", "WebUIConnect", false, handleUptime, nullptr},
|
|
|
|
|
{"/api/uptime/events", "GET", "WebUIConnect", false, handleUptimeEvents, nullptr},
|
2026-06-27 20:00:17 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const size_t CUSTOM_API_DEF_COUNT = sizeof(customApiDefs) / sizeof(customApiDefs[0]);
|