From 81dd626b9b09550983e7c3ba4aba1420e870e49b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Rodr=C3=ADguez?= Date: Mon, 16 Jan 2017 17:52:52 -0300 Subject: Add internal API endpoint to share Gitaly's paths with other components --- lib/api/internal.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/api') diff --git a/lib/api/internal.rb b/lib/api/internal.rb index d235977fbd8..6fa71e338ee 100644 --- a/lib/api/internal.rb +++ b/lib/api/internal.rb @@ -132,6 +132,12 @@ module API { success: true, recovery_codes: codes } end + + get '/gitaly' do + status 200 + + { socket_path: Gitlab.config.gitaly.socket_path } + end end end end -- cgit v1.2.1