Files
PlatformIO_Esp32C3Boilerplate/src/config/api_definitions_custom.cpp

11 lines
328 B
C++
Raw Normal View History

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},
};
const size_t CUSTOM_API_DEF_COUNT = sizeof(customApiDefs) / sizeof(customApiDefs[0]);