Redirect /all health_checks to /full

[ci skip]
pull/7286/head
Oliver Günther 6 years ago committed by Markus Kahl
parent 26a16ba0de
commit f632170b7e
  1. 3
      config/initializers/health_checks.rb
  2. 5
      config/routes.rb

@ -17,9 +17,6 @@ class DelayedJobNeverRanCheck < OkComputer::Check
end
end
# Mount at /health_checks
OkComputer.mount_at = 'health_checks'
# Register delayed_job backed up test
dj_max = OpenProject::Configuration.health_checks_jobs_queue_count_threshold
OkComputer::Registry.register "delayed_jobs_backed_up",

@ -31,6 +31,11 @@ OpenProject::Application.routes.draw do
root to: 'homescreen#index', as: 'home'
rails_relative_url_root = OpenProject::Configuration['rails_relative_url_root'] || ''
# Route for health_checks
# Override the default `all` checks route to return the full check
get '/health_checks/all' => redirect("#{rails_relative_url_root}/health_checks/full")
mount OkComputer::Engine, at: "/health_checks"
# Redirect deprecated issue links to new work packages uris
get '/issues(/)' => redirect("#{rails_relative_url_root}/work_packages")
# The URI.escape doesn't escape / unless you ask it to.

Loading…
Cancel
Save