Sha256: cda68e537b9e2098a1d3832e53991a7058bbf1b3d3e3af117dabcaf5fa3868b2

Contents?: true

Size: 296 Bytes

Versions: 1

Compression:

Stored size: 296 Bytes

Contents

class HealthRails::HealthController < ApplicationController
  # GET /health
  def index
    health_check = HealthRails::HealthCheck.new
    if health_check.all_ok?
      render text: "All OK"
    else
      render text: health_check.error_messages, status: :service_unavailable
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
health_rails-0.0.1 app/controllers/health_rails/health_controller.rb