|
@ -391,6 +391,7 @@ class RestApi { |
|
|
obj[F("modules")] = String(mApp->getVersionModules()); |
|
|
obj[F("modules")] = String(mApp->getVersionModules()); |
|
|
obj[F("build")] = String(AUTO_GIT_HASH); |
|
|
obj[F("build")] = String(AUTO_GIT_HASH); |
|
|
obj[F("env")] = String(ENV_NAME); |
|
|
obj[F("env")] = String(ENV_NAME); |
|
|
|
|
|
obj[F("host")] = mConfig->sys.deviceName; |
|
|
obj[F("menu_prot")] = mApp->isProtected(request->client()->remoteIP().toString().c_str(), "", true); |
|
|
obj[F("menu_prot")] = mApp->isProtected(request->client()->remoteIP().toString().c_str(), "", true); |
|
|
obj[F("menu_mask")] = (uint16_t)(mConfig->sys.protectionMask ); |
|
|
obj[F("menu_mask")] = (uint16_t)(mConfig->sys.protectionMask ); |
|
|
obj[F("menu_protEn")] = (bool) (mConfig->sys.adminPwd[0] != '\0'); |
|
|
obj[F("menu_protEn")] = (bool) (mConfig->sys.adminPwd[0] != '\0'); |
|
@ -418,7 +419,6 @@ class RestApi { |
|
|
obj[F("dark_mode")] = (bool)mConfig->sys.darkMode; |
|
|
obj[F("dark_mode")] = (bool)mConfig->sys.darkMode; |
|
|
obj[F("sched_reboot")] = (bool)mConfig->sys.schedReboot; |
|
|
obj[F("sched_reboot")] = (bool)mConfig->sys.schedReboot; |
|
|
|
|
|
|
|
|
obj[F("hostname")] = mConfig->sys.deviceName; |
|
|
|
|
|
obj[F("pwd_set")] = (strlen(mConfig->sys.adminPwd) > 0); |
|
|
obj[F("pwd_set")] = (strlen(mConfig->sys.adminPwd) > 0); |
|
|
obj[F("prot_mask")] = mConfig->sys.protectionMask; |
|
|
obj[F("prot_mask")] = mConfig->sys.protectionMask; |
|
|
|
|
|
|
|
|