More work on the ESP32C3 Boilerplate
This commit is contained in:
10
src/config/api_definitions_custom.cpp
Normal file
10
src/config/api_definitions_custom.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#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]);
|
||||
Reference in New Issue
Block a user