Sha256: 2d129f826bd1d596bba8458015a92b0227af3e0d96056290502cedd6c02e3f05
Contents?: true
Size: 737 Bytes
Versions: 16
Compression:
Stored size: 737 Bytes
Contents
# Health Check endpoint module MnoEnterprise class StatusController < ApplicationController # Simple check to see that the app is up # Returns: # {status: 'Ok'} def ping render json: {status: 'Ok'} end # Version check # Returns: # { # 'app-version': '9061048-6811c4a', # 'mno-enterprise-version': '0.0.1', # 'env': 'test', # 'mno-api-host': 'https://uat.maestrano.io' # } def version data = { 'app-version' => MnoEnterprise::APP_VERSION, 'mno-enteprise-version' => MnoEnterprise::VERSION, 'env' => Rails.env, 'mno-api-host' => MnoEnterprise.mno_api_host } render json: data end end end
Version data entries
16 entries across 16 versions & 1 rubygems