gitlab-org--gitlab-foss/app/controllers/admin/health_check_controller.rb
DJ Mountney 160ef66d1b Add health_check access token, and enforce on the health_check endpoint
Also added a health check page to the admin section for resetting the token.
2016-05-10 08:46:02 -07:00

9 lines
248 B
Ruby

class Admin::HealthCheckController < Admin::ApplicationController
def show
begin
@errors = HealthCheck::Utils.process_checks('standard')
rescue => e
@errors = e.message.blank? ? e.class.to_s : e.message.to_s
end
end
end