blob: b974489836f28435b86a88124109de715858c945 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
class HealthCheckController < HealthCheck::HealthCheckController
before_action :validate_health_check_access!
protected
def validate_health_check_access!
return render_404 unless params[:token].presence && params[:token] == current_application_settings.health_check_access_token
end
def render_404
render file: Rails.root.join("public", "404"), layout: false, status: "404"
end
end
|