Sha256: 2b589899948a8265a92353bf9b943e88e2418cd32f213ce94fcf749e6daf6d3a

Contents?: true

Size: 607 Bytes

Versions: 21

Compression:

Stored size: 607 Bytes

Contents

# frozen_string_literal: true

module NeetoCommonsBackend
  class AppVersionsController < ApplicationController
    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

    private

      def app_versions
        @_app_versions ||= (Rails.application.secrets.app_versions || {})
      end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
neeto-commons-backend-1.0.109 app/controllers/neeto_commons_backend/app_versions_controller.rb
neeto-commons-backend-1.0.108 app/controllers/neeto_commons_backend/app_versions_controller.rb
neeto-commons-backend-1.0.107 app/controllers/neeto_commons_backend/app_versions_controller.rb
neeto-commons-backend-1.0.106 app/controllers/neeto_commons_backend/app_versions_controller.rb
neeto-commons-backend-1.0.105 app/controllers/neeto_commons_backend/app_versions_controller.rb
neeto-commons-backend-1.0.104 app/controllers/neeto_commons_backend/app_versions_controller.rb
neeto-commons-backend-1.0.103 app/controllers/neeto_commons_backend/app_versions_controller.rb
neeto-commons-backend-1.0.102 app/controllers/neeto_commons_backend/app_versions_controller.rb
neeto-commons-backend-1.0.101 app/controllers/neeto_commons_backend/app_versions_controller.rb
neeto-commons-backend-1.0.100 app/controllers/neeto_commons_backend/app_versions_controller.rb
neeto-commons-backend-1.0.99 app/controllers/neeto_commons_backend/app_versions_controller.rb
neeto-commons-backend-1.0.98 app/controllers/neeto_commons_backend/app_versions_controller.rb
neeto-commons-backend-1.0.97 app/controllers/neeto_commons_backend/app_versions_controller.rb
neeto-commons-backend-1.0.96 app/controllers/neeto_commons_backend/app_versions_controller.rb
neeto-commons-backend-1.0.95 app/controllers/neeto_commons_backend/app_versions_controller.rb
neeto-commons-backend-1.0.94 app/controllers/neeto_commons_backend/app_versions_controller.rb
neeto-commons-backend-1.0.93 app/controllers/neeto_commons_backend/app_versions_controller.rb
neeto-commons-backend-1.0.92 app/controllers/neeto_commons_backend/app_versions_controller.rb
neeto-commons-backend-1.0.91 app/controllers/neeto_commons_backend/app_versions_controller.rb
neeto-commons-backend-1.0.90 app/controllers/neeto_commons_backend/app_versions_controller.rb