Skip to content

Instantly share code, notes, and snippets.

@jpswensen
jpswensen / WebFramework.cpp
Created January 4, 2025 07:25
A templatized way of creating Arduino AsyncWebServer APIs
#include "WebFramework.h"
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// All the templating functions that make the installation of the various web handlers really easy.
// See usage in .cpp file for clarification.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
String nil_get() { return ""; }
void nil_post(String val) { return; }