summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-07-27 12:19:51 -0700
committerStan Hu <stanhu@gmail.com>2018-07-28 14:35:02 -0700
commit22d44ae9a699c418aba442cd99eec8f58d5fa006 (patch)
tree035cd854d43f390b3684e123be74482485e25296 /config/routes.rb
parenteb2bc7d99a99981150f32ac2469bff29eebbfa19 (diff)
downloadgitlab-ce-22d44ae9a699c418aba442cd99eec8f58d5fa006.tar.gz
Use /-/health instead of breaking /-/liveness
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 6bf0335a923..aac3a77c4f1 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -46,7 +46,8 @@ Rails.application.routes.draw do
get 'health_check(/:checks)' => 'health_check#index', as: :health_check
scope path: '-' do
- get 'liveness' => 'health#liveness' # Intercepted via Gitlab::Middleware::LivenessHealthCheck
+ # '/-/health' implemented by BasicHealthMiddleware
+ get 'liveness' => 'health#liveness'
get 'readiness' => 'health#readiness'
post 'storage_check' => 'health#storage_check'
resources :metrics, only: [:index]