Skip to content

Commit

Permalink
infra: add /up route
Browse files Browse the repository at this point in the history
  • Loading branch information
santiagorodriguez96 committed Mar 29, 2024
1 parent c91215c commit ddb4161
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ddb4161

Please sign in to comment.