summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorDJ Mountney <david@twkie.net>2016-05-11 17:27:08 -0700
committerDJ Mountney <david@twkie.net>2016-05-11 17:27:08 -0700
commitc8f23bd2edc19f968446b149120df1f7798eb4b1 (patch)
tree1b922eff4ebae5350ce4d44417877ef05993bfa1 /config/routes.rb
parent0e0caf4d17c28b6b0f3488b25efa265ce2804cc4 (diff)
downloadgitlab-ce-c8f23bd2edc19f968446b149120df1f7798eb4b1.tar.gz
Support token header for health check token, and general cleanup of the health_check feature.
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index c81bf294a53..f794a881f71 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -74,7 +74,7 @@ Rails.application.routes.draw do
end
# Health check
- get 'health_check(/:checks)(.:format)' => 'health_check#index'
+ get 'health_check(/:checks)' => 'health_check#index', as: :health_check
# Enable Grack support
mount Grack::AuthSpawner, at: '/', constraints: lambda { |request| /[-\/\w\.]+\.git\//.match(request.path_info) }, via: [:get, :post, :put]