Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tasdikrahman/88a9a18b009d1e4ec10f3a3bc0eee086 to your computer and use it in GitHub Desktop.
Save tasdikrahman/88a9a18b009d1e4ec10f3a3bc0eee086 to your computer and use it in GitHub Desktop.
# app/controllers/health_check_controller.rb
class HealthCheckController < ActionController::Base
def ping
Rails.logger.info("bazbar, request-id: #{request.request_id}")
render json: { success: true, errors: nil, data: 'pong' }, status: :ok
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment