From 7703d9ba2b32410dff9504299c7e57de83061019 Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Thu, 13 Apr 2023 19:39:17 +0300 Subject: [PATCH] api: reference settings keys --- code/espurna/api_common.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/espurna/api_common.cpp b/code/espurna/api_common.cpp index 5cf81c2d..092c1dd6 100644 --- a/code/espurna/api_common.cpp +++ b/code/espurna/api_common.cpp @@ -74,9 +74,9 @@ void onVisible(JsonObject& root) { } void onConnected(JsonObject& root) { - root["apiEnabled"] = apiEnabled(); - root["apiKey"] = apiKey(); - root["apiRestFul"] = apiRestFul(); + root[settings::keys::Enabled] = apiEnabled(); + root[settings::keys::Key] = apiKey(); + root[settings::keys::Restful] = apiRestFul(); } void setup() {