From d753acc370c88f557dd49273d9c7cec6a505a122 Mon Sep 17 00:00:00 2001 From: Robbe Van Petegem Date: Fri, 17 May 2024 11:34:39 +0200 Subject: [PATCH] Enable rails health check in routes (#565) --- config/routes.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index f24b3753..821f4f72 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -96,6 +96,7 @@ # rescan GET /api/rescans/:id(.:format) rescans#show # POST /api/rescans/:id(.:format) rescans#start # POST /api/rescans(.:format) rescans#start_all +# rails_health_check GET /api/up(.:format) rails/health#show # rails_service_blob GET /rails/active_storage/blobs/redirect/:signed_id/*filename(.:format) active_storage/blobs/redirect#show # rails_service_blob_proxy GET /rails/active_storage/blobs/proxy/:signed_id/*filename(.:format) active_storage/blobs/proxy#show # GET /rails/active_storage/blobs/:signed_id/*filename(.:format) active_storage/blobs/redirect#show @@ -173,5 +174,7 @@ resources :rescans, only: %i[index show] post 'rescans/:id', to: 'rescans#start' post 'rescans', to: 'rescans#start_all' + + get 'up', to: 'rails/health#show', as: :rails_health_check end end