mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-25 14:56:11 +02:00
Feature(web/RestApi): re-adding version and build number to api
This commit is contained in:
parent
6e901a656c
commit
2b67ed433d
1 changed files with 2 additions and 0 deletions
|
@ -197,6 +197,8 @@ class RestApi {
|
|||
void getGeneric(AsyncWebServerRequest *request, JsonObject obj) {
|
||||
obj[F("wifi_rssi")] = (WiFi.status() != WL_CONNECTED) ? 0 : WiFi.RSSI();
|
||||
obj[F("ts_uptime")] = mApp->getUptime();
|
||||
obj[F("version")] = String(mApp->getVersion());
|
||||
obj[F("build")] = String(AUTO_GIT_HASH);
|
||||
obj[F("menu_prot")] = mApp->getProtection(request);
|
||||
obj[F("menu_mask")] = (uint16_t)(mConfig->sys.protectionMask );
|
||||
obj[F("menu_protEn")] = (bool) (strlen(mConfig->sys.adminPwd) > 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue