lib/health/endpoint.rb in health-0.0.2 vs lib/health/endpoint.rb in health-0.0.3
- old
+ new
@@ -13,10 +13,10 @@
get "/" do
Health.names.to_json
end
get "/:name" do
- pass if !Health.names.include?(params[:name].to_sym)
+ pass if !Health.has_check?(params[:name])
value = Health.perform(params[:name])
status = value[:ok] ? 200 : 500
[status, value.to_json]