fix compiling local test

This commit is contained in:
Proddy
2024-03-10 21:36:22 +01:00
parent 9ad80fc74d
commit b7bd2be0a5
3 changed files with 69 additions and 57 deletions

View File

@@ -62,6 +62,13 @@ void WebAPIService::webAPIService(AsyncWebServerRequest * request, JsonVariant j
parse(request, input);
}
#ifdef EMSESP_TEST
// for test.cpp so we can invoke GETs to test the API
void WebAPIService::webAPIService(AsyncWebServerRequest * request) {
JsonDocument input_doc;
parse(request, input_doc.to<JsonObject>());
}
#endif
// parse the URL looking for query or path parameters
// reporting back any errors