diff --git a/app/controllers/health_controller.rb b/app/controllers/health_controller.rb deleted file mode 100644 index 1298857fc9..0000000000 --- a/app/controllers/health_controller.rb +++ /dev/null @@ -1,7 +0,0 @@ -# frozen_string_literal: true - -# Controller to display a page stating that Limber is up, as a health check endpoint -class HealthController < ApplicationController - def show - end -end diff --git a/app/views/health/show.html.erb b/app/views/health/show.html.erb deleted file mode 100644 index 7200f7a7b9..0000000000 --- a/app/views/health/show.html.erb +++ /dev/null @@ -1 +0,0 @@ -Limber is up! diff --git a/config/routes.rb b/config/routes.rb index 68bbe622ea..9d1f74852c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -3,7 +3,7 @@ Rails.application.routes.draw do resources 'pipeline_work_in_progress', only: :show - get '/health', controller: :health, action: 'show', as: :health + get '/health' => 'rails/health#show', :as => :rails_health_check scope 'search', controller: :search do get '/', action: :new, as: :search