Skip to content

Commit

Permalink
Merge branch 'avendretter-feat/ISSUE-1045_Add-version-to-api' into de…
Browse files Browse the repository at this point in the history
…velopment03
  • Loading branch information
lumapu committed Jul 28, 2023
2 parents 6e901a6 + 2b67ed4 commit a893ae1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/web/RestApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a893ae1

Please sign in to comment.