Class: NeetoCommonsBackend::AppVersionsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/neeto_commons_backend/app_versions_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
8
9
10
11
12
# File 'app/controllers/neeto_commons_backend/app_versions_controller.rb', line 5

def index
  render json: {
    "androidMinimumSupportedVersion": app_versions[:android_minimum_supported_version],
    "androidCurrentVersion": app_versions[:android_current_version],
    "iOSMinimumSupportedVersion": app_versions[:ios_minimum_supported_version],
    "iOSCurrentVersion": app_versions[:ios_current_version]
  }
end