From d737bcfdc675ba911e4284369ab542d484de9a94 Mon Sep 17 00:00:00 2001 From: Santiago Rodriguez Date: Sat, 23 Mar 2024 17:47:47 -0300 Subject: [PATCH] infra: add `/up` route --- config/routes.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index c672c1d..8a3d43e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -2,6 +2,11 @@ Rails.application.routes.draw do # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html + + # Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500. + # Can be used by load balancers and uptime monitors to verify that the app is live. + get "up" => "rails/health#show", as: :rails_health_check + resource :session, only: [:new, :create, :destroy] do post :callback end