diff --git a/config/routes.rb b/config/routes.rb index 10a6b1a..e9da409 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,11 @@ Rails.application.routes.draw do + # Rails' built-in health check endpoint. Returns 200 when the app boots with + # no exceptions, 500 otherwise. Responds with an HTML page (browsers/bots) or + # a JSON body (Accept: application/json), so uptime monitors, load balancers, + # and JSON clients are all covered by the same endpoint. + get "up" => "rails/health#show", as: :rails_health_check + get 'home/index' get 'home/privacy' root :to => "home#index"