From 5c95a3143b14b99a22c0c3e90d5b142ab2a41bf4 Mon Sep 17 00:00:00 2001 From: Frank Date: Sun, 21 Jan 2024 08:39:12 +0100 Subject: [PATCH] Add some REST Api Endpoints to avail_endpoints --- src/web/RestApi.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/web/RestApi.h b/src/web/RestApi.h index 8cf1a41ed..6d8cea407 100644 --- a/src/web/RestApi.h +++ b/src/web/RestApi.h @@ -200,8 +200,14 @@ class RestApi { ep[F("generic")] = url + F("generic"); ep[F("index")] = url + F("index"); ep[F("setup")] = url + F("setup"); + #if !defined(ETHERNET) + ep[F("setup/networks")] = url + F("setup/networks"); + ep[F("setup/getip")] = url + F("setup/getip"); + #endif /* !defined(ETHERNET) */ ep[F("system")] = url + F("system"); ep[F("live")] = url + F("live"); + ep[F("powerHistory")] = url + F("powerHistory"); + ep[F("yieldDayHistory")] = url + F("yieldDayHistory"); }